Skip to content

Commit d0bb66e

Browse files
committed
Add types for complex access path suggestions
1 parent 5367bde commit d0bb66e

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import type { MethodSignature } from "./method";
2+
3+
export enum AccessPathSuggestionDefinitionType {
4+
Array = "array",
5+
Class = "class",
6+
Enum = "enum",
7+
EnumMember = "enum-member",
8+
Field = "field",
9+
Interface = "interface",
10+
Key = "key",
11+
Method = "method",
12+
Misc = "misc",
13+
Namespace = "namespace",
14+
Parameter = "parameter",
15+
Property = "property",
16+
Structure = "structure",
17+
Return = "return",
18+
Variable = "variable",
19+
}
20+
21+
export type AccessPathSuggestionRow = {
22+
method: MethodSignature;
23+
definitionType: AccessPathSuggestionDefinitionType;
24+
value: string;
25+
details: string;
26+
};
27+
28+
export type AccessPathOption = {
29+
label: string;
30+
value: string;
31+
icon: string;
32+
details?: string;
33+
followup?: AccessPathOption[];
34+
};

0 commit comments

Comments
 (0)