UNPKG

runtypes

Version:

Runtime validation for static types

14 lines (13 loc) 266 B
import Runtype from "./Runtype.js"; /** * Validates that a value is a string. * * Possible failures: * * - `TYPE_INCORRECT` for non-strings */ interface String extends Runtype<string> { tag: "string"; } declare const String: String; export default String;