-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathapi-types.ts
More file actions
34 lines (30 loc) · 890 Bytes
/
api-types.ts
File metadata and controls
34 lines (30 loc) · 890 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
export interface Parameter {
name: string;
type: string;
description?: string;
}
export interface FunctionDeclaration {
kind: 'function';
name: string;
description?: string;
returns: string;
args: Parameter[];
available?: 'both' | 'server' | 'client'; // Assuming Panorama API might also have context differences
deprecated?: string | boolean;
}
export interface ClassDeclaration {
kind: 'class';
name: string;
description?: string;
extend?: string; // Add extend property for class inheritance
members: (FunctionDeclaration | FieldDeclaration)[]; // Assuming classes might have fields too
available?: 'both' | 'server' | 'client';
}
export interface FieldDeclaration {
kind: 'field';
name: string;
type: string;
description?: string;
available?: 'both' | 'server' | 'client';
}
export type Declaration = FunctionDeclaration | ClassDeclaration;