UNPKG

1.03 kBTypeScriptView Raw
1import type { JSONSchema6, JSONSchema6Definition, JSONSchema6TypeName } from 'json-schema';
2import type { VariableToType } from './collectVariables';
3export type { JSONSchema6, JSONSchema6TypeName };
4export declare type JsonSchemaOptions = {
5 useMarkdownDescription?: boolean;
6};
7export declare type JSONSchemaOptions = {
8 useMarkdownDescription?: boolean;
9};
10export declare const defaultJSONSchemaOptions: {
11 useMarkdownDescription: boolean;
12};
13export declare type MonacoEditorJSONSchema = JSONSchema6 & {
14 markdownDescription?: string;
15};
16export declare type CombinedSchema = JSONSchema6 | MonacoEditorJSONSchema;
17declare type Definitions = {
18 [k: string]: JSONSchema6Definition;
19};
20export declare type DefinitionResult = {
21 definition: JSONSchema6 | MonacoEditorJSONSchema;
22 required: boolean;
23 definitions?: Definitions;
24};
25export declare function getVariablesJSONSchema(variableToType: VariableToType, options?: JSONSchemaOptions): JSONSchema6;
26//# sourceMappingURL=getVariablesJSONSchema.d.ts.map
\No newline at end of file