From b439912c9b3cc6a761317ffd0c4182ce80a86cf5 Mon Sep 17 00:00:00 2001 From: Juha Jantunen Date: Sat, 27 May 2023 23:43:01 +0300 Subject: [PATCH] feat: have stricter type-checks --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 44f8b2b..12868fa 100644 --- a/src/index.ts +++ b/src/index.ts @@ -21,7 +21,7 @@ export type Item = { relationships?: { [key: string]: { links?: { - [key: string]: any; + [key: string]: string | null; }; data?: RelationshipItem | RelationshipItem[] | null; }; @@ -30,7 +30,7 @@ export type Item = { [key: string]: any; }; links?: { - [key: string]: any; + [key: string]: string | null; }; }; @@ -44,7 +44,7 @@ type JsonApiPayload = { [key: string]: any; }; links?: { - [key: string]: any; + [key: string]: string | null; }; };