Skip to main content

Type Alias: Widen<T>

type Widen<T>: 
| [unknown] extends [T] ? unknown : never
| T extends Function ? T : never
| T extends ResolvedRegister["BigIntType"] ? bigint : never
| T extends boolean ? boolean : never
| T extends ResolvedRegister["IntType"] ? number : never
| T extends string ? T extends ResolvedRegister["AddressType"] ? ResolvedRegister["AddressType"] : T extends ResolvedRegister["BytesType"]["inputs"] ? ResolvedRegister["BytesType"] : string : never
| T extends readonly [] ? readonly [] : never
| T extends Record<string, unknown> ? { [K in keyof T]: Widen<T[K]> } : never
| T extends object ? { [K in keyof T]: Widen<T[K]> } extends infer Val ? readonly [...Val] : never : never;

Type Parameters

Type Parameter

T

Defined

@nilfoundation/niljs/src/contract-factory/ContractFactory.ts:132