@basementuniverse/jsonpad-realtime-sdk 1.5.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/build/jsonpad-realtime-sdk.node.js +216 -0
  3. package/package.json +5 -2
  4. package/resources/jsonpad-realtime-sdk-test/build/index.d.ts +0 -1
  5. package/resources/jsonpad-realtime-sdk-test/build/index.js +0 -42
  6. package/resources/jsonpad-realtime-sdk-test/index.html +0 -52
  7. package/resources/jsonpad-realtime-sdk-test/index.js +0 -51
  8. package/resources/jsonpad-realtime-sdk-test/index.ts +0 -66
  9. package/resources/jsonpad-realtime-sdk-test/node_modules/.package-lock.json +0 -43
  10. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/LICENSE.txt +0 -55
  11. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/README.md +0 -50
  12. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/SECURITY.md +0 -41
  13. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
  14. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/bin/tsc +0 -2
  15. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/bin/tsserver +0 -2
  16. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/cancellationToken.js +0 -90
  17. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2087
  18. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2087
  19. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2087
  20. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2087
  21. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2087
  22. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2087
  23. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2087
  24. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.d.ts +0 -22
  25. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.decorators.d.ts +0 -386
  26. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
  27. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -41
  28. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.dom.d.ts +0 -28087
  29. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -491
  30. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
  31. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
  32. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
  33. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
  34. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -527
  35. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
  36. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
  37. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
  38. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
  39. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
  40. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
  41. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
  42. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
  43. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
  44. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2017.d.ts +0 -25
  45. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
  46. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
  47. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
  48. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
  49. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
  50. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
  51. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
  52. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
  53. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -53
  54. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
  55. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
  56. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
  57. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
  58. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
  59. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
  60. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
  61. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
  62. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
  63. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
  64. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
  65. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
  66. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -727
  67. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
  68. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
  69. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
  70. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
  71. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
  72. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
  73. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -97
  74. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -42
  75. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -41
  76. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
  77. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
  78. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
  79. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
  80. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
  81. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -76
  82. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
  83. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2022.d.ts +0 -26
  84. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -73
  85. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
  86. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -121
  87. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
  88. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
  89. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts +0 -39
  90. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
  91. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
  92. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
  93. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
  94. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
  95. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
  96. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es5.d.ts +0 -4585
  97. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.es6.d.ts +0 -23
  98. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
  99. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -106
  100. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.esnext.d.ts +0 -29
  101. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
  102. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -193
  103. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
  104. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
  105. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.esnext.iterator.d.ts +0 -148
  106. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.esnext.object.d.ts +0 -29
  107. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -35
  108. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.esnext.regexp.d.ts +0 -25
  109. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.esnext.string.d.ts +0 -29
  110. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
  111. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -41
  112. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.webworker.d.ts +0 -9410
  113. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
  114. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -288
  115. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2087
  116. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2087
  117. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2087
  118. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2087
  119. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/tsc.js +0 -130769
  120. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/tsserver.js +0 -623
  121. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
  122. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/tsserverlibrary.js +0 -21
  123. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/typesMap.json +0 -497
  124. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/typescript.d.ts +0 -11328
  125. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/typescript.js +0 -196068
  126. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/typingsInstaller.js +0 -236
  127. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/watchGuard.js +0 -53
  128. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2087
  129. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2087
  130. package/resources/jsonpad-realtime-sdk-test/node_modules/typescript/package.json +0 -121
  131. package/resources/jsonpad-realtime-sdk-test/package-lock.json +0 -54
  132. package/resources/jsonpad-realtime-sdk-test/package.json +0 -17
  133. package/resources/jsonpad-realtime-sdk-test/tsconfig.json +0 -25
@@ -1,22 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
- this file except in compliance with the License. You may obtain a copy of the
5
- License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- /// <reference lib="es5" />
20
- /// <reference lib="dom" />
21
- /// <reference lib="webworker.importscripts" />
22
- /// <reference lib="scripthost" />
@@ -1,386 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
- this file except in compliance with the License. You may obtain a copy of the
5
- License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- /**
20
- * The decorator context types provided to class element decorators.
21
- */
22
- type ClassMemberDecoratorContext =
23
- | ClassMethodDecoratorContext
24
- | ClassGetterDecoratorContext
25
- | ClassSetterDecoratorContext
26
- | ClassFieldDecoratorContext
27
- | ClassAccessorDecoratorContext;
28
-
29
- /**
30
- * The decorator context types provided to any decorator.
31
- */
32
- type DecoratorContext =
33
- | ClassDecoratorContext
34
- | ClassMemberDecoratorContext;
35
-
36
- type DecoratorMetadataObject = Record<PropertyKey, unknown> & object;
37
-
38
- type DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined;
39
-
40
- /**
41
- * Context provided to a class decorator.
42
- * @template Class The type of the decorated class associated with this context.
43
- */
44
- interface ClassDecoratorContext<
45
- Class extends abstract new (...args: any) => any = abstract new (...args: any) => any,
46
- > {
47
- /** The kind of element that was decorated. */
48
- readonly kind: "class";
49
-
50
- /** The name of the decorated class. */
51
- readonly name: string | undefined;
52
-
53
- /**
54
- * Adds a callback to be invoked after the class definition has been finalized.
55
- *
56
- * @example
57
- * ```ts
58
- * function customElement(name: string): ClassDecoratorFunction {
59
- * return (target, context) => {
60
- * context.addInitializer(function () {
61
- * customElements.define(name, this);
62
- * });
63
- * }
64
- * }
65
- *
66
- * @customElement("my-element")
67
- * class MyElement {}
68
- * ```
69
- */
70
- addInitializer(initializer: (this: Class) => void): void;
71
-
72
- readonly metadata: DecoratorMetadata;
73
- }
74
-
75
- /**
76
- * Context provided to a class method decorator.
77
- * @template This The type on which the class element will be defined. For a static class element, this will be
78
- * the type of the constructor. For a non-static class element, this will be the type of the instance.
79
- * @template Value The type of the decorated class method.
80
- */
81
- interface ClassMethodDecoratorContext<
82
- This = unknown,
83
- Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any,
84
- > {
85
- /** The kind of class element that was decorated. */
86
- readonly kind: "method";
87
-
88
- /** The name of the decorated class element. */
89
- readonly name: string | symbol;
90
-
91
- /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */
92
- readonly static: boolean;
93
-
94
- /** A value indicating whether the class element has a private name. */
95
- readonly private: boolean;
96
-
97
- /** An object that can be used to access the current value of the class element at runtime. */
98
- readonly access: {
99
- /**
100
- * Determines whether an object has a property with the same name as the decorated element.
101
- */
102
- has(object: This): boolean;
103
- /**
104
- * Gets the current value of the method from the provided object.
105
- *
106
- * @example
107
- * let fn = context.access.get(instance);
108
- */
109
- get(object: This): Value;
110
- };
111
-
112
- /**
113
- * Adds a callback to be invoked either before static initializers are run (when
114
- * decorating a `static` element), or before instance initializers are run (when
115
- * decorating a non-`static` element).
116
- *
117
- * @example
118
- * ```ts
119
- * const bound: ClassMethodDecoratorFunction = (value, context) {
120
- * if (context.private) throw new TypeError("Not supported on private methods.");
121
- * context.addInitializer(function () {
122
- * this[context.name] = this[context.name].bind(this);
123
- * });
124
- * }
125
- *
126
- * class C {
127
- * message = "Hello";
128
- *
129
- * @bound
130
- * m() {
131
- * console.log(this.message);
132
- * }
133
- * }
134
- * ```
135
- */
136
- addInitializer(initializer: (this: This) => void): void;
137
-
138
- readonly metadata: DecoratorMetadata;
139
- }
140
-
141
- /**
142
- * Context provided to a class getter decorator.
143
- * @template This The type on which the class element will be defined. For a static class element, this will be
144
- * the type of the constructor. For a non-static class element, this will be the type of the instance.
145
- * @template Value The property type of the decorated class getter.
146
- */
147
- interface ClassGetterDecoratorContext<
148
- This = unknown,
149
- Value = unknown,
150
- > {
151
- /** The kind of class element that was decorated. */
152
- readonly kind: "getter";
153
-
154
- /** The name of the decorated class element. */
155
- readonly name: string | symbol;
156
-
157
- /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */
158
- readonly static: boolean;
159
-
160
- /** A value indicating whether the class element has a private name. */
161
- readonly private: boolean;
162
-
163
- /** An object that can be used to access the current value of the class element at runtime. */
164
- readonly access: {
165
- /**
166
- * Determines whether an object has a property with the same name as the decorated element.
167
- */
168
- has(object: This): boolean;
169
- /**
170
- * Invokes the getter on the provided object.
171
- *
172
- * @example
173
- * let value = context.access.get(instance);
174
- */
175
- get(object: This): Value;
176
- };
177
-
178
- /**
179
- * Adds a callback to be invoked either before static initializers are run (when
180
- * decorating a `static` element), or before instance initializers are run (when
181
- * decorating a non-`static` element).
182
- */
183
- addInitializer(initializer: (this: This) => void): void;
184
-
185
- readonly metadata: DecoratorMetadata;
186
- }
187
-
188
- /**
189
- * Context provided to a class setter decorator.
190
- * @template This The type on which the class element will be defined. For a static class element, this will be
191
- * the type of the constructor. For a non-static class element, this will be the type of the instance.
192
- * @template Value The type of the decorated class setter.
193
- */
194
- interface ClassSetterDecoratorContext<
195
- This = unknown,
196
- Value = unknown,
197
- > {
198
- /** The kind of class element that was decorated. */
199
- readonly kind: "setter";
200
-
201
- /** The name of the decorated class element. */
202
- readonly name: string | symbol;
203
-
204
- /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */
205
- readonly static: boolean;
206
-
207
- /** A value indicating whether the class element has a private name. */
208
- readonly private: boolean;
209
-
210
- /** An object that can be used to access the current value of the class element at runtime. */
211
- readonly access: {
212
- /**
213
- * Determines whether an object has a property with the same name as the decorated element.
214
- */
215
- has(object: This): boolean;
216
- /**
217
- * Invokes the setter on the provided object.
218
- *
219
- * @example
220
- * context.access.set(instance, value);
221
- */
222
- set(object: This, value: Value): void;
223
- };
224
-
225
- /**
226
- * Adds a callback to be invoked either before static initializers are run (when
227
- * decorating a `static` element), or before instance initializers are run (when
228
- * decorating a non-`static` element).
229
- */
230
- addInitializer(initializer: (this: This) => void): void;
231
-
232
- readonly metadata: DecoratorMetadata;
233
- }
234
-
235
- /**
236
- * Context provided to a class `accessor` field decorator.
237
- * @template This The type on which the class element will be defined. For a static class element, this will be
238
- * the type of the constructor. For a non-static class element, this will be the type of the instance.
239
- * @template Value The type of decorated class field.
240
- */
241
- interface ClassAccessorDecoratorContext<
242
- This = unknown,
243
- Value = unknown,
244
- > {
245
- /** The kind of class element that was decorated. */
246
- readonly kind: "accessor";
247
-
248
- /** The name of the decorated class element. */
249
- readonly name: string | symbol;
250
-
251
- /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */
252
- readonly static: boolean;
253
-
254
- /** A value indicating whether the class element has a private name. */
255
- readonly private: boolean;
256
-
257
- /** An object that can be used to access the current value of the class element at runtime. */
258
- readonly access: {
259
- /**
260
- * Determines whether an object has a property with the same name as the decorated element.
261
- */
262
- has(object: This): boolean;
263
-
264
- /**
265
- * Invokes the getter on the provided object.
266
- *
267
- * @example
268
- * let value = context.access.get(instance);
269
- */
270
- get(object: This): Value;
271
-
272
- /**
273
- * Invokes the setter on the provided object.
274
- *
275
- * @example
276
- * context.access.set(instance, value);
277
- */
278
- set(object: This, value: Value): void;
279
- };
280
-
281
- /**
282
- * Adds a callback to be invoked either before static initializers are run (when
283
- * decorating a `static` element), or before instance initializers are run (when
284
- * decorating a non-`static` element).
285
- */
286
- addInitializer(initializer: (this: This) => void): void;
287
-
288
- readonly metadata: DecoratorMetadata;
289
- }
290
-
291
- /**
292
- * Describes the target provided to class `accessor` field decorators.
293
- * @template This The `this` type to which the target applies.
294
- * @template Value The property type for the class `accessor` field.
295
- */
296
- interface ClassAccessorDecoratorTarget<This, Value> {
297
- /**
298
- * Invokes the getter that was defined prior to decorator application.
299
- *
300
- * @example
301
- * let value = target.get.call(instance);
302
- */
303
- get(this: This): Value;
304
-
305
- /**
306
- * Invokes the setter that was defined prior to decorator application.
307
- *
308
- * @example
309
- * target.set.call(instance, value);
310
- */
311
- set(this: This, value: Value): void;
312
- }
313
-
314
- /**
315
- * Describes the allowed return value from a class `accessor` field decorator.
316
- * @template This The `this` type to which the target applies.
317
- * @template Value The property type for the class `accessor` field.
318
- */
319
- interface ClassAccessorDecoratorResult<This, Value> {
320
- /**
321
- * An optional replacement getter function. If not provided, the existing getter function is used instead.
322
- */
323
- get?(this: This): Value;
324
-
325
- /**
326
- * An optional replacement setter function. If not provided, the existing setter function is used instead.
327
- */
328
- set?(this: This, value: Value): void;
329
-
330
- /**
331
- * An optional initializer mutator that is invoked when the underlying field initializer is evaluated.
332
- * @param value The incoming initializer value.
333
- * @returns The replacement initializer value.
334
- */
335
- init?(this: This, value: Value): Value;
336
- }
337
-
338
- /**
339
- * Context provided to a class field decorator.
340
- * @template This The type on which the class element will be defined. For a static class element, this will be
341
- * the type of the constructor. For a non-static class element, this will be the type of the instance.
342
- * @template Value The type of the decorated class field.
343
- */
344
- interface ClassFieldDecoratorContext<
345
- This = unknown,
346
- Value = unknown,
347
- > {
348
- /** The kind of class element that was decorated. */
349
- readonly kind: "field";
350
-
351
- /** The name of the decorated class element. */
352
- readonly name: string | symbol;
353
-
354
- /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */
355
- readonly static: boolean;
356
-
357
- /** A value indicating whether the class element has a private name. */
358
- readonly private: boolean;
359
-
360
- /** An object that can be used to access the current value of the class element at runtime. */
361
- readonly access: {
362
- /**
363
- * Determines whether an object has a property with the same name as the decorated element.
364
- */
365
- has(object: This): boolean;
366
-
367
- /**
368
- * Gets the value of the field on the provided object.
369
- */
370
- get(object: This): Value;
371
-
372
- /**
373
- * Sets the value of the field on the provided object.
374
- */
375
- set(object: This, value: Value): void;
376
- };
377
-
378
- /**
379
- * Adds a callback to be invoked either before static initializers are run (when
380
- * decorating a `static` element), or before instance initializers are run (when
381
- * decorating a non-`static` element).
382
- */
383
- addInitializer(initializer: (this: This) => void): void;
384
-
385
- readonly metadata: DecoratorMetadata;
386
- }
@@ -1,22 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
- this file except in compliance with the License. You may obtain a copy of the
5
- License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
20
- declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
21
- declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
22
- declare type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void;
@@ -1,41 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
- this file except in compliance with the License. You may obtain a copy of the
5
- License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
-
17
- /// <reference no-default-lib="true"/>
18
-
19
- /////////////////////////////
20
- /// Window Async Iterable APIs
21
- /////////////////////////////
22
-
23
- interface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
24
- [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>;
25
- }
26
-
27
- interface FileSystemDirectoryHandle {
28
- [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
29
- entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
30
- keys(): FileSystemDirectoryHandleAsyncIterator<string>;
31
- values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>;
32
- }
33
-
34
- interface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
35
- [Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
36
- }
37
-
38
- interface ReadableStream<R = any> {
39
- [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
40
- values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
41
- }