From 699b6f024d467cafeadb630becd65ed20aad5072 Mon Sep 17 00:00:00 2001 From: Leibale Date: Thu, 22 Jun 2023 18:32:15 -0400 Subject: [PATCH] wip --- packages/client/lib/RESP/types.ts | 50 ------------------------------- 1 file changed, 50 deletions(-) diff --git a/packages/client/lib/RESP/types.ts b/packages/client/lib/RESP/types.ts index 7565630969..4816f39d5a 100644 --- a/packages/client/lib/RESP/types.ts +++ b/packages/client/lib/RESP/types.ts @@ -361,53 +361,3 @@ type ReplyWithPolicy< // otherwise, return array of replies Array ); - -const SAME = { - transformArguments(key: string): Array { - return ['GET', key]; - }, - transformReply: () => 'default' as const -} satisfies Command; - -type SAME_DEFAULT = CommandWithPoliciesSignature< - typeof SAME, - 2, - {}, - { - request: REQUEST_POLICIES['ALL_NODES']; - response: RESPONSE_POLICIES['SPECIAL']; - } ->; - -// type SAME_RESP2 = CommandReply; -// type SAME_COMMAND_RESP2 = CommandSignuture; -// type SAME_RESP3 = CommandReply; -// type SAME_COMMAND_RESP3 = CommandSignuture; - -// interface Test { -// /** -// * This is a test -// */ -// a: 'a'; -// } - -// const DIFFERENT = { -// transformArguments(key: string): Array { -// return ['GET', key]; -// }, -// transformReply: { -// 2: () => null as any as Test, -// 3: () => '3' as const -// } -// } satisfies Command; - -// type DIFFERENT_RESP2 = CommandReply; -// type DIFFERENT_COMMAND_RESP2 = CommandSignuture; -// type DIFFERENT_RESP3 = CommandReply; -// type DIFFERENT_COMMAND_RESP3 = CommandSignuture; - -// const a = null as any as DIFFERENT_COMMAND_RESP2; - -// const b = await a('a'); - -// b.a \ No newline at end of file