diff --git a/packages/libs/client-utils/src/core/utils/types.ts b/packages/libs/client-utils/src/core/utils/types.ts index 6346c48bb6..c1ddac3ac7 100644 --- a/packages/libs/client-utils/src/core/utils/types.ts +++ b/packages/libs/client-utils/src/core/utils/types.ts @@ -8,26 +8,25 @@ export type IfAny = 0 extends 1 & T ? Y : N; export type First = T extends [infer One] ? One : T extends [infer HD, ...Any[]] - ? HD - : never; + ? HD + : never; // eslint-disable-next-line @typescript-eslint/no-unused-vars export type Tail = T extends [infer _] ? [] : // eslint-disable-next-line @typescript-eslint/no-unused-vars - T extends [infer _, ...infer TL] - ? TL - : never; + T extends [infer _, ...infer TL] + ? TL + : never; export type Prettify = { [K in keyof T]: T[K]; } & {}; -export type Assert = (() => V extends T ? 1 : 2) extends < - V, ->() => V extends U ? 1 : 2 - ? true - : { error: 'Types are not equal'; received: T; expected: U }; +export type Assert = + (() => V extends T ? 1 : 2) extends () => V extends U ? 1 : 2 + ? true + : { error: 'Types are not equal'; received: T; expected: U }; export type UnionToIntersection = ( T extends unknown ? (k: T) => void : never diff --git a/packages/tools/kadena-cli/src/utils/helpers.ts b/packages/tools/kadena-cli/src/utils/helpers.ts index 34e996138e..646c62d16c 100644 --- a/packages/tools/kadena-cli/src/utils/helpers.ts +++ b/packages/tools/kadena-cli/src/utils/helpers.ts @@ -102,8 +102,8 @@ export const passwordPromptTransform = useStdin === true && (passwordFile === '-' || passwordFile === undefined) ? (args.stdin as string | null) : typeof passwordFile === 'string' - ? await services.filesystem.readFile(passwordFile) - : passwordFile._password; + ? await services.filesystem.readFile(passwordFile) + : passwordFile._password; if (password === null) { throw new CommandError({ @@ -142,8 +142,8 @@ export const mnemonicPromptTransform = filepath === '-' || filepath === undefined ? (args.stdin as string | null) : typeof filepath === 'string' - ? await services.filesystem.readFile(filepath) - : filepath._secret; + ? await services.filesystem.readFile(filepath) + : filepath._secret; if (content === null) { throw new CommandError({