UNPKG

smart-types-ts

Version:

A collection of _Smart Types_ and _Smart Constructors_ which enable you to be more strict when defining your application's important types/interfaces.

4 lines (3 loc) 195 B
import { SmartConstructor, SmartType } from "../utilTypes"; export declare type PositiveInt = SmartType<number, "PositiveInt">; export declare const mkPositiveInt: SmartConstructor<PositiveInt>;