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

Type declaration

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