Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions packages/rest/typescript-tests/types.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2054,18 +2054,10 @@ it('content property: schema constraint', () => {
new RestEndpoint({ path: '/x' as const, content: 'text', schema: Article });

// @ts-expect-error - schema incompatible with content: 'arrayBuffer'
new RestEndpoint({
path: '/x' as const,
content: 'arrayBuffer',
schema: Article,
});
new RestEndpoint({ path: '/x' as const, content: 'arrayBuffer', schema: Article });

// @ts-expect-error - schema incompatible with content: 'stream'
new RestEndpoint({
path: '/x' as const,
content: 'stream',
schema: Article,
});
new RestEndpoint({ path: '/x' as const, content: 'stream', schema: Article });

// content: 'json' allows schema
new RestEndpoint({
Expand Down