@data-client/rest
Version:
Quickly define typed REST resources and endpoints
142 lines (141 loc) • 3.08 kB
TypeScript
export declare const payload: {
id: number;
title: string;
content: string;
tags: string[];
};
export declare const createPayload: {
id: number;
title: string;
content: string;
tags: string[];
};
export declare const articlesPages: {
prevPage: string;
nextPage: string;
results: ({
id: number;
title: string;
content: string;
tags: string[];
} | {
id: number;
title: string;
content: string;
tags?: undefined;
})[];
};
export declare const users: {
id: number;
username: string;
email: string;
isAdmin: boolean;
}[];
export declare const nested: ({
id: number;
title: string;
content: string;
tags: string[];
author: {
id: number;
username: string;
email?: undefined;
};
} | {
id: number;
title: string;
content: string;
author: {
id: number;
username: string;
email: string;
};
tags?: undefined;
})[];
export declare const moreNested: ({
id: number;
title: string;
content: string;
tags: string[];
author: {
id: number;
username: string;
email?: undefined;
};
} | {
id: number;
title: string;
content: string;
author: {
id: number;
username: string;
email: string;
};
tags?: undefined;
})[];
export declare const valuesFixture: {
first: {
id: number;
title: string;
content: string;
tags: never[];
};
second: {
id: number;
name: string;
content: string;
tags: never[];
};
};
export declare const paginatedFirstPage: {
nextPage: string;
data: {
results: ({
id: number;
title: string;
content: string;
tags: string[];
author: {
id: number;
username: string;
email?: undefined;
};
} | {
id: number;
title: string;
content: string;
author: {
id: number;
username: string;
email: string;
};
tags?: undefined;
})[];
};
};
export declare const paginatedSecondPage: {
data: {
results: ({
id: number;
title: string;
content: string;
tags: string[];
author: {
id: number;
username: string;
email?: undefined;
};
} | {
id: number;
title: string;
content: string;
author: {
id: number;
username: string;
email: string;
};
tags?: undefined;
})[];
};
};
//# sourceMappingURL=test-fixtures.d.ts.map