dilswer
Version:
Blazingly fast data validation library with TypeScript integration.
7 lines (6 loc) • 361 B
TypeScript
import { AnyType } from "../data-types/type-types";
/**
* Gives a score for a given type that gives a hint of how many possible branches validation of that type may take.
* These scores are only useful for direct comparison between them and are not intended to be used for anything else.
*/
export declare function approximateComplexity(t: AnyType): number;