@datocms/rest-client-utils
Version:
Utilities for DatoCMS REST API clients
25 lines (24 loc) • 483 B
TypeScript
type Options = {
id?: string;
type: string;
attributes: '*';
relationships: string[];
} | {
id?: string;
type: string;
attributes: string[];
relationships: '*';
} | {
id?: string;
type: string;
attributes: string[];
relationships: string[];
};
export type Rel = {
id: string;
type: string;
};
export declare function serializeRequestBody<T extends {
data: unknown;
} | null>(body: unknown, options: Options): T;
export {};