UNPKG

646 BTypeScriptView Raw
1import { Dictionary } from '@stoplight/types';
2export declare enum StoplightConfigError {
3 Syntax = "syntax",
4 Validation = "validation",
5 IO = "io"
6}
7export declare enum StoplightKnownPath {
8 OAS = "openapi",
9 Json_Schema = "json_schema",
10 Image = "image",
11 Markdown = "markdown"
12}
13export declare type FormatPaths = null | {
14 rootDir: string;
15 include?: string[];
16};
17export declare type TreeDefinition<T extends string[] = string[]> = {
18 formats: T;
19};
20export declare type StoplightConfig = {
21 exclude?: string[];
22 formats?: Dictionary<FormatPaths, string>;
23 trees?: Dictionary<TreeDefinition, string>;
24};