UNPKG

@datocms/rest-client-utils

Version:
14 lines (13 loc) 515 B
type JsonApiEntity = { id?: string; type?: string; attributes?: object; relationships?: object; meta?: object; __itemTypeId?: string; }; export declare function deserializeJsonEntity<S>({ __itemTypeId, id, type, attributes, relationships, meta, }: JsonApiEntity): S; export declare function deserializeResponseBody<T>(body: unknown): T; export declare function deserializeRawItem<S>(entity: S): S; export declare function deserializeRawResponseBodyWithItems<T>(body: unknown): T; export {};