json-api-models
Advanced tools
Comparing version
@@ -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 @@ |
25299
0.07%