UNPKG

schema-dts-gen

Version:

Generate TypeScript Definitions for Schema.org Schema

12 lines 613 B
import ts from 'typescript'; import type { TypeNode } from 'typescript'; import { Context } from './context.js'; export declare const IdReferenceName = "IdReference"; export declare const GraphTypeName = "Graph"; export declare function SchemaValueReference({ hasRole }: { hasRole: boolean; }, makeScalarType: () => TypeNode, propertyName: string): ts.TypeReferenceNode; export declare function HelperTypes(context: Context, { hasRole }: { hasRole: boolean; }): (ts.InterfaceDeclaration | ts.TypeAliasDeclaration | ts.ImportDeclaration | ts.ExportDeclaration)[]; //# sourceMappingURL=helper_types.d.ts.map