@types/json-api-serializer
Advanced tools
Comparing version 2.6.2 to 2.6.3
@@ -25,3 +25,3 @@ // Type definitions for json-api-serializer 2.6 | ||
links?: LinksObject | LinksCallback | undefined; | ||
meta?: MetaCallback | unknown | undefined; | ||
meta?: MetaCallback | Meta | undefined; | ||
beforeSerialize?: BeforeSerializeCallback | undefined; | ||
@@ -40,3 +40,3 @@ } | ||
topLevelMeta?: MetaCallback | unknown | undefined; | ||
meta?: MetaCallback | unknown | undefined; | ||
meta?: MetaCallback | Meta | undefined; | ||
relationships?: { | ||
@@ -63,7 +63,8 @@ [key: string]: RelationshipOptions; | ||
href: string; | ||
meta: unknown; | ||
meta?: Meta; | ||
} | ||
interface LinksObject { | ||
[name: string]: LinkObject | LinksCallback | string | null; | ||
self?: LinkObject | LinksCallback | string | null; | ||
related?: LinkObject | LinksCallback | string | null; | ||
} | ||
@@ -76,3 +77,3 @@ | ||
relationships?: { | ||
[key: string]: { data: ResourceObject<any> | Array<ResourceObject<any>> }; | ||
[key: string]: Relationship; | ||
} | undefined; | ||
@@ -82,2 +83,26 @@ links?: LinksObject | LinksCallback | undefined; | ||
type Relationship = { | ||
links?: LinksObject | LinksCallback | undefined; | ||
data: Linkage | Linkage[]; | ||
meta?: Meta; | ||
} | { | ||
links?: LinksObject | LinksCallback | undefined; | ||
data?: Linkage | Linkage[]; | ||
meta: Meta; | ||
} | { | ||
links: LinksObject | LinksCallback | undefined; | ||
data?: Linkage | Linkage[]; | ||
meta?: Meta; | ||
}; | ||
interface Meta { | ||
[name: string]: unknown; | ||
} | ||
interface Linkage { | ||
type: string; | ||
id: string; | ||
meta?: Meta; | ||
} | ||
interface JsonApiObject { | ||
@@ -97,3 +122,3 @@ version: string; | ||
source?: unknown | undefined; | ||
meta?: unknown | undefined; | ||
meta?: Meta | undefined; | ||
} | ||
@@ -106,3 +131,3 @@ | ||
errors?: ErrorObject[] | undefined; | ||
meta?: { [key: string]: unknown } | undefined; | ||
meta?: Meta | undefined; | ||
included?: Array<ResourceObject<unknown>> | undefined; | ||
@@ -109,0 +134,0 @@ } |
{ | ||
"name": "@types/json-api-serializer", | ||
"version": "2.6.2", | ||
"version": "2.6.3", | ||
"description": "TypeScript definitions for json-api-serializer", | ||
@@ -23,4 +23,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-api-serializer", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "1c2b43cf4c047c7e19070dafd3427174eca51d2c8643b8d0ad8ba66ec47afceb", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "5c199e1418428f5f8675157f87dc61d88a99c3f4b088c771977698a513dbe99e", | ||
"typeScriptVersion": "3.7" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 08 Jul 2021 16:22:50 GMT | ||
* Last updated: Mon, 30 Aug 2021 16:01:20 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7611
145