ts-stronger-types
Version:
Runtime checking of types and integrity for Typescript projects
9 lines (8 loc) • 643 B
TypeScript
import { TypedOptions } from './typed.config';
export declare const getActualType: (value: unknown) => string;
export declare const logOrThrow: (message: string, options: TypedOptions) => void;
export declare const logOrThrowIncorrectReturnType: (fnName: string, className: string, returnTypeName: string, expectedReturnTypeName: string, options: TypedOptions) => void;
export declare const logOrThrowIncorrectArgument: (fnName: string, className: string, argumentValue: unknown, actualArgTypeName: string, expectedArgTypeName: string, options: TypedOptions) => void;
export interface Type<T> extends Function {
new (...args: any[]): T;
}