-
-
Notifications
You must be signed in to change notification settings - Fork 201
Expand file tree
/
Copy pathcode-generation.d.ts
More file actions
47 lines (39 loc) · 888 Bytes
/
code-generation.d.ts
File metadata and controls
47 lines (39 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { IDictionary } from "../declarations";
declare module CodeGeneration {
interface IModel {
id: string;
properties: IDictionary<IModelProperty>;
}
interface IModelProperty {
type: string;
items: IModelPropertyItems;
allowableValues: IModelPropertyValue;
}
interface IModelPropertyItems {
$ref: string;
}
interface IModelPropertyValue {
valueType: string;
values: string[];
}
interface ICodeEntity {
opener?: string;
codeEntityType: any;
}
interface ILine extends ICodeEntity {
content: string;
}
interface IBlock extends ICodeEntity {
opener: string;
codeEntities: ICodeEntity[];
writeLine(content: string): void;
addLine(line: ILine): void;
addBlock(block: IBlock): void;
addBlocks(blocks: IBlock[]): void;
endingCharacter?: string;
}
interface IService {
serviceInterface: IBlock;
serviceImplementation: IBlock;
}
}