Skip to content

ArgumentTypeGuards<TParameters>

One type guard per parameter of a method, in order.

Import:

import type { ArgumentTypeGuards } from '@mnaoumov/typescript-lib/api-contract';

Signature:

export type ArgumentTypeGuards<TParameters extends readonly unknown[]>

Signature:

type ArgumentTypeGuards<TParameters> = {
readonly [TIndex in keyof TParameters]: ExpectedTypeGuard<TParameters[TIndex]>;
}

Type: { readonly [TIndex in keyof TParameters]: ExpectedTypeGuard<TParameters[TIndex]>; }


Links to this page: