Skip to content

Commit 699b6f0

Browse files
committed
wip
1 parent 4a9d934 commit 699b6f0

File tree

1 file changed

+0
-50
lines changed

1 file changed

+0
-50
lines changed

packages/client/lib/RESP/types.ts

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -361,53 +361,3 @@ type ReplyWithPolicy<
361361
// otherwise, return array of replies
362362
Array<REPLY>
363363
);
364-
365-
const SAME = {
366-
transformArguments(key: string): Array<string> {
367-
return ['GET', key];
368-
},
369-
transformReply: () => 'default' as const
370-
} satisfies Command;
371-
372-
type SAME_DEFAULT = CommandWithPoliciesSignature<
373-
typeof SAME,
374-
2,
375-
{},
376-
{
377-
request: REQUEST_POLICIES['ALL_NODES'];
378-
response: RESPONSE_POLICIES['SPECIAL'];
379-
}
380-
>;
381-
382-
// type SAME_RESP2 = CommandReply<typeof SAME, 2>;
383-
// type SAME_COMMAND_RESP2 = CommandSignuture<typeof SAME, 2>;
384-
// type SAME_RESP3 = CommandReply<typeof SAME, 3>;
385-
// type SAME_COMMAND_RESP3 = CommandSignuture<typeof SAME, 3>;
386-
387-
// interface Test {
388-
// /**
389-
// * This is a test
390-
// */
391-
// a: 'a';
392-
// }
393-
394-
// const DIFFERENT = {
395-
// transformArguments(key: string): Array<string> {
396-
// return ['GET', key];
397-
// },
398-
// transformReply: {
399-
// 2: () => null as any as Test,
400-
// 3: () => '3' as const
401-
// }
402-
// } satisfies Command;
403-
404-
// type DIFFERENT_RESP2 = CommandReply<typeof DIFFERENT, 2>;
405-
// type DIFFERENT_COMMAND_RESP2 = CommandSignuture<typeof DIFFERENT, 2>;
406-
// type DIFFERENT_RESP3 = CommandReply<typeof DIFFERENT, 3>;
407-
// type DIFFERENT_COMMAND_RESP3 = CommandSignuture<typeof DIFFERENT, 3>;
408-
409-
// const a = null as any as DIFFERENT_COMMAND_RESP2;
410-
411-
// const b = await a('a');
412-
413-
// b.a

0 commit comments

Comments
 (0)