UNPKG

1.22 kBTypeScriptView Raw
1/** @deprecated */
2export declare enum Markers {
3 start = "/**",
4 nostart = "/***",
5 delim = "*",
6 end = "*/"
7}
8export interface BlockMarkers {
9 start: string;
10 nostart: string;
11 delim: string;
12 end: string;
13}
14export interface Block {
15 description: string;
16 tags: Spec[];
17 source: Line[];
18 problems: Problem[];
19}
20export interface Spec {
21 tag: string;
22 name: string;
23 default?: string;
24 type: string;
25 optional: boolean;
26 description: string;
27 problems: Problem[];
28 source: Line[];
29}
30export interface Line {
31 number: number;
32 source: string;
33 tokens: Tokens;
34}
35export interface Tokens {
36 start: string;
37 delimiter: string;
38 postDelimiter: string;
39 tag: string;
40 postTag: string;
41 name: string;
42 postName: string;
43 type: string;
44 postType: string;
45 description: string;
46 end: string;
47 lineEnd: string;
48}
49export interface Problem {
50 code: 'unhandled' | 'custom' | 'source:startline' | 'spec:tag:prefix' | 'spec:type:unpaired-curlies' | 'spec:name:unpaired-brackets' | 'spec:name:empty-name' | 'spec:name:invalid-default' | 'spec:name:empty-default';
51 message: string;
52 line: number;
53 critical: boolean;
54}