Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 659 Bytes

types.typeimpl.md

File metadata and controls

22 lines (14 loc) · 659 Bytes

Home > @skunkteam/types > TypeImpl

TypeImpl type

The Type with the given type implementation.

Signature:

type TypeImpl<Impl extends BaseTypeImpl<any, any>> = Impl & {
    new (input: unknown): TypeOf<Impl>;
    (this: void, input: unknown): TypeOf<Impl>;
};

References: BaseTypeImpl, TypeOf

Remarks

Adds both constructor and regular function to the signature to make sure TypeScript will emit the type as decorator metadata.