🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

json-api-models

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-api-models - npm Package Compare versions

Comparing version

to
0.2.0-beta.8

2

dist/model.d.ts

@@ -34,3 +34,3 @@ import { JsonApiResource, SchemaCollection } from './types';

};
export type Model<Schema extends JsonApiResource = JsonApiResource, Schemas extends SchemaCollection = SchemaCollection> = JsonApiResource<Schema['type']> & ModelBase<Schema> & ProxiedModel<Schema, Schemas>;
export type Model<Schema extends JsonApiResource = JsonApiResource, Schemas extends SchemaCollection = SchemaCollection> = JsonApiResource<Schema['type']> & ModelBase<Schema, Schemas> & ProxiedModel<Schema, Schemas>;
export declare const Model: new <Schema extends JsonApiResource = JsonApiResource, Schemas extends SchemaCollection = SchemaCollection>(data: JsonApiResource<Schema['type']>, store: Store<Schemas>) => Model<Schema, Schemas>;

@@ -37,0 +37,0 @@ export type ModelMap<Schemas extends SchemaCollection = SchemaCollection> = {

{
"name": "json-api-models",
"description": "A lightweight layer for working with JSON:API data.",
"version": "0.2.0-beta.7",
"version": "0.2.0-beta.8",
"author": "Toby Zerner",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -127,3 +127,3 @@ import { JsonApiResource, SchemaCollection } from './types';

> = JsonApiResource<Schema['type']> &
ModelBase<Schema> &
ModelBase<Schema, Schemas> &
ProxiedModel<Schema, Schemas>;

@@ -130,0 +130,0 @@