1 parent 93d6276 commit f67b27cCopy full SHA for f67b27c
1 file changed
jspp_builtin_type.d.ts
@@ -0,0 +1,31 @@
1
+// This type of file is a specialized type for type conversion built into jspp
2
+
3
+declare type enum_t<T> = number;
4
5
+declare type optional<T> = T | null;
6
7
+declare type vector<T> = Array<T>;
8
9
+declare type unordered_map<V> = {
10
+ [key: string]: V;
11
+};
12
13
+declare type variant<T extends any[]> = T[number];
14
15
+declare type monostate = null;
16
17
+declare type pair<first, second> = [first, second];
18
19
+declare type function_t<return_type, args extends any[] = []> = (
20
+ ...args: args
21
+) => return_type;
22
23
+declare type shared_ptr<T> = T | null;
24
25
+declare type unique_ptr<T> = T | null;
26
27
+declare type weak_ptr<T> = T | null;
28
29
+declare type reference_wrapper<T> = T;
30
31
+declare type filesystem_path = string;
0 commit comments