WithFactory: {
    create: <T extends object>(
        typeCheck: TypeCheck<T>,
    ) => <R>(mod: any, closure: (mod: T) => R) => undefined | R;
} = ...

Type declaration

  • create: <T extends object>(
        typeCheck: TypeCheck<T>,
    ) => <R>(mod: any, closure: (mod: T) => R) => undefined | R