npm install --save @types/levn
This package contains type definitions for levn (https://github.com/gkz/levn).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/levn.
import { CustomType, ParsedType, ParsedTypeData } from "type-check";
export interface CastableCustomType extends CustomType {
cast: (input: unknown) => ParsedTypeData;
}
export interface ParseOptions {
customTypes?: Record<string, CastableCustomType> | undefined;
explicit?: boolean | undefined;
}
export function parse(
type: string,
string: string,
options?: ParseOptions,
): unknown;
export function parsedTypeParse(
parsedType: ParsedType,
input: string,
options?: ParseOptions,
): unknown;
export const VERSION: string;
- Last updated: Fri, 06 Sep 2024 21:07:35 GMT
- Dependencies: @types/type-check
These definitions were written by Josh Goldberg.