@matatbread/typia
Version:
Superfast runtime validators with only one line
18 lines (17 loc) • 546 B
TypeScript
import ts from "typescript";
import { Metadata } from "../schemas/metadata/Metadata";
import { MetadataCollection } from "./MetadataCollection";
export declare namespace JsonMetadataFactory {
interface IProps {
method: string;
checker: ts.TypeChecker;
transformer?: ts.TransformationContext;
type: ts.Type;
}
interface IOutput {
collection: MetadataCollection;
metadata: Metadata;
}
const analyze: (props: IProps) => IOutput;
const validate: (meta: Metadata) => string[];
}