Skip to main content

ContractConstructorOptionsWithArguments

Midnight.js API Reference v2.0.2


Midnight.js API Reference / @midnight-ntwrk/midnight-js-contracts / ContractConstructorOptionsWithArguments

Type Alias: ContractConstructorOptionsWithArguments<C>

ContractConstructorOptionsWithArguments<C> = InitialStateParameters<C> extends [] ? ContractConstructorOptionsBase<C> : ContractConstructorOptionsBase<C> & object

Conditional type that optionally adds the inferred contract constructor argument types to the constructor options.

Type Parameters​

C​

C extends Contract