UNPKG

schema-dts-gen

Version:

Generate TypeScript Definitions for Schema.org Schema

18 lines 903 B
import { Context } from '../ts/context.js'; import { Store } from 'n3'; /** * Writes TypeScript declarations for all Classes, Typedefs, and Enums * representing the ontology passed in the 'triples' parameter. * * @param triples Observable emitting all Triples found in an ontology. * @param includeDeprecated True if classes and properties marked with * 'supersededBy' should still be included (as 'deprecated') in the final * TypeScript output. * @param context Context for the transformation. * @param write Callback function to write a portion of the file. Will be called * sequentially on separate chunks within a file. * * @returns Promise indicating completion. */ export declare function WriteDeclarations(graph: Store, includeDeprecated: boolean, context: Context, write: (content: string) => Promise<void> | void): Promise<void>; //# sourceMappingURL=transform.d.ts.map