UNPKG

succulent

Version:

Powerful and easy runtime type checking

5 lines (4 loc) 204 B
type IsAny<T> = unknown extends T ? (T extends {} ? T : never) : never; type NotAny<T> = T extends IsAny<T> ? never : T; export declare function assertType<T, X extends T>(x: NotAny<X>): void; export {};