ts-to-mongo-schema
Version:
Using the Typescript Compiler API, this program parses through Typescript, to generate a JSON Schema that conforms to MongoDB's bson format. Useful when generating large schemas, and being unable to use a javascript or typescript library like Moongoose.
4 lines (3 loc) • 348 B
TypeScript
import { GenerateFilePathProps } from "../utilityFuncs/generateNewFilePath";
declare const searchForExport: ({ name, imports, paths, extension }: GenerateFilePathProps) => import("@ts-morph/common/lib/typescript").TypeAliasDeclaration | import("@ts-morph/common/lib/typescript").InterfaceDeclaration | undefined;
export default searchForExport;