@stryke/types 0.10.12 → 0.10.19

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 (177) hide show
  1. package/README.md +18 -10
  2. package/dist/{array.d.ts → array-DVtfX_TI.d.mts} +17 -13
  3. package/dist/array-DVtfX_TI.d.mts.map +1 -0
  4. package/dist/array-DtIKbcDr.d.cts +122 -0
  5. package/dist/array-DtIKbcDr.d.cts.map +1 -0
  6. package/dist/array.cjs +0 -1
  7. package/dist/array.d.cts +2 -0
  8. package/dist/array.d.mts +2 -0
  9. package/dist/array.mjs +1 -0
  10. package/dist/{async.d.ts → async-BtPWg6IL.d.mts} +14 -8
  11. package/dist/async-BtPWg6IL.d.mts.map +1 -0
  12. package/dist/async-eKWh-_sF.d.cts +111 -0
  13. package/dist/async-eKWh-_sF.d.cts.map +1 -0
  14. package/dist/async.cjs +0 -1
  15. package/dist/async.d.cts +2 -0
  16. package/dist/async.d.mts +2 -0
  17. package/dist/async.mjs +1 -0
  18. package/dist/{base.d.ts → base-CiIyKS-b.d.mts} +120 -126
  19. package/dist/base-CiIyKS-b.d.mts.map +1 -0
  20. package/dist/base-Cpeh4C5c.cjs +3 -0
  21. package/dist/base-DmFPRVSE.mjs +3 -0
  22. package/dist/base-DmFPRVSE.mjs.map +1 -0
  23. package/dist/base-EF17pdAI.d.cts +331 -0
  24. package/dist/base-EF17pdAI.d.cts.map +1 -0
  25. package/dist/base.cjs +1 -16
  26. package/dist/base.d.cts +2 -0
  27. package/dist/base.d.mts +2 -0
  28. package/dist/base.mjs +1 -2
  29. package/dist/configuration-5Q2wg3Id.d.mts +71 -0
  30. package/dist/configuration-5Q2wg3Id.d.mts.map +1 -0
  31. package/dist/configuration-Dvz7q6dd.d.cts +71 -0
  32. package/dist/configuration-Dvz7q6dd.d.cts.map +1 -0
  33. package/dist/configuration.cjs +0 -1
  34. package/dist/configuration.d.cts +2 -0
  35. package/dist/configuration.d.mts +2 -0
  36. package/dist/configuration.mjs +1 -0
  37. package/dist/file-dM8RAMNC.d.cts +51 -0
  38. package/dist/file-dM8RAMNC.d.cts.map +1 -0
  39. package/dist/file-eWushyiM.d.mts +51 -0
  40. package/dist/file-eWushyiM.d.mts.map +1 -0
  41. package/dist/file.cjs +0 -1
  42. package/dist/file.d.cts +2 -0
  43. package/dist/file.d.mts +2 -0
  44. package/dist/file.mjs +1 -0
  45. package/dist/form-mTzpZCeA.d.cts +40 -0
  46. package/dist/form-mTzpZCeA.d.cts.map +1 -0
  47. package/dist/form-sNCVXIEk.d.mts +40 -0
  48. package/dist/form-sNCVXIEk.d.mts.map +1 -0
  49. package/dist/form.cjs +0 -1
  50. package/dist/form.d.cts +2 -0
  51. package/dist/form.d.mts +2 -0
  52. package/dist/form.mjs +1 -0
  53. package/dist/index.cjs +1 -214
  54. package/dist/index.d.cts +19 -0
  55. package/dist/index.d.mts +19 -0
  56. package/dist/index.mjs +1 -1
  57. package/dist/{json.d.ts → json-BlaU0Pbq.d.cts} +11 -13
  58. package/dist/json-BlaU0Pbq.d.cts.map +1 -0
  59. package/dist/json-C3wqh2t3.d.mts +70 -0
  60. package/dist/json-C3wqh2t3.d.mts.map +1 -0
  61. package/dist/json.cjs +0 -1
  62. package/dist/json.d.cts +2 -0
  63. package/dist/json.d.mts +2 -0
  64. package/dist/json.mjs +1 -0
  65. package/dist/logic-BoEG5A3-.d.cts +374 -0
  66. package/dist/logic-BoEG5A3-.d.cts.map +1 -0
  67. package/dist/logic-h9Jrrpsk.d.mts +374 -0
  68. package/dist/logic-h9Jrrpsk.d.mts.map +1 -0
  69. package/dist/logic.cjs +0 -1
  70. package/dist/logic.d.cts +2 -0
  71. package/dist/logic.d.mts +2 -0
  72. package/dist/logic.mjs +1 -0
  73. package/dist/messages-Bxu_o13x.d.mts +21 -0
  74. package/dist/messages-Bxu_o13x.d.mts.map +1 -0
  75. package/dist/messages-PtLJRJeN.d.cts +21 -0
  76. package/dist/messages-PtLJRJeN.d.cts.map +1 -0
  77. package/dist/messages.cjs +0 -1
  78. package/dist/messages.d.cts +2 -0
  79. package/dist/messages.d.mts +2 -0
  80. package/dist/messages.mjs +1 -0
  81. package/dist/navigator-DLpMW73v.d.mts +42 -0
  82. package/dist/navigator-DLpMW73v.d.mts.map +1 -0
  83. package/dist/navigator-wsxMUGqK.d.cts +42 -0
  84. package/dist/navigator-wsxMUGqK.d.cts.map +1 -0
  85. package/dist/navigator.cjs +0 -1
  86. package/dist/navigator.d.cts +2 -0
  87. package/dist/navigator.d.mts +2 -0
  88. package/dist/navigator.mjs +1 -0
  89. package/dist/number.cjs +0 -1
  90. package/dist/number.d.cts +2 -0
  91. package/dist/number.d.mts +2 -0
  92. package/dist/number.mjs +1 -0
  93. package/dist/{object.d.ts → object-B3Rc0f80.d.mts} +56 -84
  94. package/dist/object-B3Rc0f80.d.mts.map +1 -0
  95. package/dist/object-DyLgFijN.d.cts +392 -0
  96. package/dist/object-DyLgFijN.d.cts.map +1 -0
  97. package/dist/object.cjs +0 -1
  98. package/dist/object.d.cts +2 -0
  99. package/dist/object.d.mts +2 -0
  100. package/dist/object.mjs +1 -0
  101. package/dist/package-json-BYMmXu4B.d.mts +261 -0
  102. package/dist/package-json-BYMmXu4B.d.mts.map +1 -0
  103. package/dist/package-json-DMeUqEmW.d.cts +261 -0
  104. package/dist/package-json-DMeUqEmW.d.cts.map +1 -0
  105. package/dist/package-json.cjs +0 -1
  106. package/dist/package-json.d.cts +2 -0
  107. package/dist/package-json.d.mts +2 -0
  108. package/dist/package-json.mjs +1 -0
  109. package/dist/package-manager-PRcovqs-.d.mts +6 -0
  110. package/dist/package-manager-PRcovqs-.d.mts.map +1 -0
  111. package/dist/package-manager-tcG2TLVT.d.cts +6 -0
  112. package/dist/package-manager-tcG2TLVT.d.cts.map +1 -0
  113. package/dist/package-manager.cjs +0 -1
  114. package/dist/package-manager.d.cts +2 -0
  115. package/dist/package-manager.d.mts +2 -0
  116. package/dist/package-manager.mjs +1 -0
  117. package/dist/string.cjs +0 -1
  118. package/dist/string.d.cts +2 -0
  119. package/dist/string.d.mts +2 -0
  120. package/dist/string.mjs +1 -0
  121. package/dist/system-BxYi2_rE.d.mts +5 -0
  122. package/dist/system-BxYi2_rE.d.mts.map +1 -0
  123. package/dist/system-n1LPjzuJ.d.cts +5 -0
  124. package/dist/system-n1LPjzuJ.d.cts.map +1 -0
  125. package/dist/system.cjs +0 -1
  126. package/dist/system.d.cts +2 -0
  127. package/dist/system.d.mts +2 -0
  128. package/dist/system.mjs +1 -0
  129. package/dist/tsconfig-C6dWY2RO.d.cts +803 -0
  130. package/dist/tsconfig-C6dWY2RO.d.cts.map +1 -0
  131. package/dist/tsconfig-CUKA7cEN.d.mts +803 -0
  132. package/dist/tsconfig-CUKA7cEN.d.mts.map +1 -0
  133. package/dist/tsconfig.cjs +0 -1
  134. package/dist/tsconfig.d.cts +2 -0
  135. package/dist/tsconfig.d.mts +2 -0
  136. package/dist/tsconfig.mjs +1 -0
  137. package/dist/user-CkdO4wnf.d.mts +29 -0
  138. package/dist/user-CkdO4wnf.d.mts.map +1 -0
  139. package/dist/user-CovHR6Ne.d.cts +29 -0
  140. package/dist/user-CovHR6Ne.d.cts.map +1 -0
  141. package/dist/user.cjs +0 -1
  142. package/dist/user.d.cts +2 -0
  143. package/dist/user.d.mts +2 -0
  144. package/dist/user.mjs +1 -0
  145. package/dist/utilities-BVS-gcgS.d.mts +51 -0
  146. package/dist/utilities-BVS-gcgS.d.mts.map +1 -0
  147. package/dist/utilities-Jb4ggdM-.d.cts +51 -0
  148. package/dist/utilities-Jb4ggdM-.d.cts.map +1 -0
  149. package/dist/utilities.cjs +0 -1
  150. package/dist/utilities.d.cts +2 -0
  151. package/dist/utilities.d.mts +2 -0
  152. package/dist/utilities.mjs +1 -0
  153. package/dist/validations-C_7osVpS.d.mts +21 -0
  154. package/dist/validations-C_7osVpS.d.mts.map +1 -0
  155. package/dist/validations-CvwxY4RE.d.cts +21 -0
  156. package/dist/validations-CvwxY4RE.d.cts.map +1 -0
  157. package/dist/validations.cjs +0 -1
  158. package/dist/validations.d.cts +2 -0
  159. package/dist/validations.d.mts +2 -0
  160. package/dist/validations.mjs +1 -0
  161. package/package.json +68 -247
  162. package/dist/configuration.d.ts +0 -67
  163. package/dist/file.d.ts +0 -46
  164. package/dist/form.d.ts +0 -35
  165. package/dist/index.d.ts +0 -27
  166. package/dist/logic.d.ts +0 -152
  167. package/dist/messages.d.ts +0 -17
  168. package/dist/navigator.d.ts +0 -41
  169. package/dist/number.d.ts +0 -176
  170. package/dist/package-json.d.ts +0 -260
  171. package/dist/package-manager.d.ts +0 -2
  172. package/dist/string.d.ts +0 -75
  173. package/dist/system.d.ts +0 -1
  174. package/dist/tsconfig.d.ts +0 -798
  175. package/dist/user.d.ts +0 -25
  176. package/dist/utilities.d.ts +0 -53
  177. package/dist/validations.d.ts +0 -16
@@ -1,798 +0,0 @@
1
- import type { FilterPattern } from "./file";
2
- export type JSX = "preserve" | "react" | "react-jsx" | "react-jsxdev" | "react-native";
3
- export type Module = "CommonJS" | "AMD" | "System" | "UMD" | "ES6" | "ES2015" | "ES2020" | "ES2022" | "ESNext" | "Node16" | "NodeNext" | "Preserve" | "None" | "commonjs" | "amd" | "system" | "umd" | "es6" | "es2015" | "es2020" | "es2022" | "esnext" | "node16" | "nodenext" | "preserve" | "none";
4
- export type NewLine = "CRLF" | "LF" | "crlf" | "lf";
5
- export type Target = "ES3" | "ES5" | "ES6" | "ES2015" | "ES2016" | "ES2017" | "ES2018" | "ES2019" | "ES2020" | "ES2021" | "ES2022" | "ESNext" | "es3" | "es5" | "es6" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "esnext";
6
- export type Lib = "ES5" | "ES6" | "ES7" | "ES2015" | "ES2015.Collection" | "ES2015.Core" | "ES2015.Generator" | "ES2015.Iterable" | "ES2015.Promise" | "ES2015.Proxy" | "ES2015.Reflect" | "ES2015.Symbol.WellKnown" | "ES2015.Symbol" | "ES2016" | "ES2016.Array.Include" | "ES2017" | "ES2017.Intl" | "ES2017.Object" | "ES2017.SharedMemory" | "ES2017.String" | "ES2017.TypedArrays" | "ES2018" | "ES2018.AsyncGenerator" | "ES2018.AsyncIterable" | "ES2018.Intl" | "ES2018.Promise" | "ES2018.Regexp" | "ES2019" | "ES2019.Array" | "ES2019.Object" | "ES2019.String" | "ES2019.Symbol" | "ES2020" | "ES2020.BigInt" | "ES2020.Promise" | "ES2020.String" | "ES2020.Symbol.WellKnown" | "ES2020.SharedMemory" | "ES2020.Intl" | "ES2021" | "ES2021.Promise" | "ES2021.String" | "ES2021.WeakRef" | "ES2022" | "ES2022.Array" | "ES2022.Error" | "ES2022.Intl" | "ES2022.Object" | "ES2022.SharedMemory" | "ES2022.String" | "ES2022.RegExp" | "ESNext" | "ESNext.Array" | "ESNext.AsyncIterable" | "ESNext.BigInt" | "ESNext.Intl" | "ESNext.Promise" | "ESNext.String" | "ESNext.Symbol" | "ESNext.WeakRef" | "DOM" | "DOM.Iterable" | "ScriptHost" | "WebWorker" | "WebWorker.ImportScripts" | "WebWorker.Iterable" | "es5" | "es6" | "es7" | "es2015" | "es2015.collection" | "es2015.core" | "es2015.generator" | "es2015.iterable" | "es2015.promise" | "es2015.proxy" | "es2015.reflect" | "es2015.symbol.wellknown" | "es2015.symbol" | "es2016" | "es2016.array.include" | "es2017" | "es2017.intl" | "es2017.object" | "es2017.sharedmemory" | "es2017.string" | "es2017.typedarrays" | "es2018" | "es2018.asyncgenerator" | "es2018.asynciterable" | "es2018.intl" | "es2018.promise" | "es2018.regexp" | "es2019" | "es2019.array" | "es2019.object" | "es2019.string" | "es2019.symbol" | "es2020" | "es2020.bigint" | "es2020.promise" | "es2020.string" | "es2020.symbol.wellknown" | "es2020.sharedmemory" | "es2020.intl" | "es2021" | "es2021.promise" | "es2021.string" | "es2021.weakref" | "es2022" | "es2022.array" | "es2022.error" | "es2022.intl" | "es2022.object" | "es2022.sharedmemory" | "es2022.string" | "es2022.regexp" | "esnext" | "esnext.array" | "esnext.asynciterable" | "esnext.bigint" | "esnext.intl" | "esnext.promise" | "esnext.string" | "esnext.symbol" | "esnext.weakref" | "dom" | "dom.iterable" | "scripthost" | "webworker" | "webworker.importscripts" | "webworker.iterable";
7
- export interface Plugin {
8
- /**
9
- * Plugin name.
10
- */
11
- name: string;
12
- }
13
- export type ImportsNotUsedAsValues = "remove" | "preserve" | "error";
14
- export type FallbackPolling = "fixedPollingInterval" | "priorityPollingInterval" | "dynamicPriorityPolling" | "fixedInterval" | "priorityInterval" | "dynamicPriority" | "fixedChunkSize";
15
- export type WatchDirectory = "useFsEvents" | "fixedPollingInterval" | "dynamicPriorityPolling" | "fixedChunkSizePolling";
16
- export type WatchFile = "fixedPollingInterval" | "priorityPollingInterval" | "dynamicPriorityPolling" | "useFsEvents" | "useFsEventsOnParentDirectory" | "fixedChunkSizePolling";
17
- export type ModuleResolution = "classic" | "node" | "node10" | "node16" | "nodenext" | "bundler" | "Classic" | "Node" | "Node10" | "Node16" | "NodeNext" | "Bundler";
18
- export type ModuleDetection = "auto" | "legacy" | "force";
19
- export type IgnoreDeprecations = "5.0";
20
- export interface CompilerOptions {
21
- /**
22
- * The character set of the input files.
23
- *
24
- * @defaultValue 'utf8'
25
- * @deprecated This option will be removed in TypeScript 5.5.
26
- */
27
- charset?: string;
28
- /**
29
- * Enables building for project references.
30
- *
31
- * @defaultValue true
32
- */
33
- composite?: boolean;
34
- /**
35
- * Generates corresponding d.ts files.
36
- *
37
- * @defaultValue false
38
- */
39
- declaration?: boolean;
40
- /**
41
- * Specify output directory for generated declaration files.
42
- */
43
- declarationDir?: string;
44
- /**
45
- * Show diagnostic information.
46
- *
47
- * @defaultValue false
48
- */
49
- diagnostics?: boolean;
50
- /**
51
- * Reduce the number of projects loaded automatically by TypeScript.
52
- *
53
- * @defaultValue false
54
- */
55
- disableReferencedProjectLoad?: boolean;
56
- /**
57
- * Enforces using indexed accessors for keys declared using an indexed type.
58
- *
59
- * @defaultValue false
60
- */
61
- noPropertyAccessFromIndexSignature?: boolean;
62
- /**
63
- * Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.
64
- *
65
- * @defaultValue false
66
- */
67
- emitBOM?: boolean;
68
- /**
69
- * Only emit `.d.ts` declaration files.
70
- *
71
- * @defaultValue false
72
- */
73
- emitDeclarationOnly?: boolean;
74
- /**
75
- * Differentiate between undefined and not present when type checking.
76
- *
77
- * @defaultValue false
78
- */
79
- exactOptionalPropertyTypes?: boolean;
80
- /**
81
- * Enable incremental compilation.
82
- *
83
- * @defaultValue `composite`
84
- */
85
- incremental?: boolean;
86
- /**
87
- * Specify file to store incremental compilation information.
88
- *
89
- * @defaultValue '.tsbuildinfo'
90
- */
91
- tsBuildInfoFile?: string;
92
- /**
93
- * Emit a single file with source maps instead of having a separate file.
94
- *
95
- * @defaultValue false
96
- */
97
- inlineSourceMap?: boolean;
98
- /**
99
- * Emit the source alongside the sourcemaps within a single file.
100
- *
101
- * Requires `--inlineSourceMap` to be set.
102
- *
103
- * @defaultValue false
104
- */
105
- inlineSources?: boolean;
106
- /**
107
- * Specify what JSX code is generated.
108
- *
109
- * @defaultValue 'preserve'
110
- */
111
- jsx?: JSX;
112
- /**
113
- * Specifies the object invoked for `createElement` and `__spread` when targeting `'react'` JSX emit.
114
- *
115
- * @defaultValue 'React'
116
- */
117
- reactNamespace?: string;
118
- /**
119
- * Specify the JSX factory function to use when targeting React JSX emit, e.g. `React.createElement` or `h`.
120
- *
121
- * @defaultValue 'React.createElement'
122
- */
123
- jsxFactory?: string;
124
- /**
125
- * Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'.
126
- *
127
- * @defaultValue 'React.Fragment'
128
- */
129
- jsxFragmentFactory?: string;
130
- /**
131
- * Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.
132
- *
133
- * @defaultValue 'react'
134
- */
135
- jsxImportSource?: string;
136
- /**
137
- * Print names of files part of the compilation.
138
- *
139
- * @defaultValue false
140
- */
141
- listFiles?: boolean;
142
- /**
143
- * Specifies the location where debugger should locate map files instead of generated locations.
144
- */
145
- mapRoot?: string;
146
- /**
147
- * Specify module code generation: 'None', 'CommonJS', 'AMD', 'System', 'UMD', 'ES6', 'ES2015' or 'ESNext'. Only 'AMD' and 'System' can be used in conjunction with `--outFile`. 'ES6' and 'ES2015' values may be used when targeting 'ES5' or lower.
148
- *
149
- * @defaultValue ['ES3', 'ES5'].includes(target) ? 'CommonJS' : 'ES6'
150
- */
151
- module?: Module;
152
- /**
153
- * Specifies module resolution strategy: 'node' (Node) or 'classic' (TypeScript pre 1.6).
154
- *
155
- * @defaultValue ['AMD', 'System', 'ES6'].includes(module) ? 'classic' : 'node'
156
- */
157
- moduleResolution?: ModuleResolution;
158
- /**
159
- * Specifies the end of line sequence to be used when emitting files: 'crlf' (Windows) or 'lf' (Unix).
160
- *
161
- * @defaultValue 'LF'
162
- */
163
- newLine?: NewLine;
164
- /**
165
- * Do not emit output.
166
- *
167
- * @defaultValue false
168
- */
169
- noEmit?: boolean;
170
- /**
171
- * Do not generate custom helper functions like `__extends` in compiled output.
172
- *
173
- * @defaultValue false
174
- */
175
- noEmitHelpers?: boolean;
176
- /**
177
- * Do not emit outputs if any type checking errors were reported.
178
- *
179
- * @defaultValue false
180
- */
181
- noEmitOnError?: boolean;
182
- /**
183
- * Warn on expressions and declarations with an implied 'any' type.
184
- *
185
- * @defaultValue false
186
- */
187
- noImplicitAny?: boolean;
188
- /**
189
- * Raise error on 'this' expressions with an implied any type.
190
- *
191
- * @defaultValue false
192
- */
193
- noImplicitThis?: boolean;
194
- /**
195
- * Report errors on unused locals.
196
- *
197
- * @defaultValue false
198
- */
199
- noUnusedLocals?: boolean;
200
- /**
201
- * Report errors on unused parameters.
202
- *
203
- * @defaultValue false
204
- */
205
- noUnusedParameters?: boolean;
206
- /**
207
- * Do not include the default library file (lib.d.ts).
208
- *
209
- * @defaultValue false
210
- */
211
- noLib?: boolean;
212
- /**
213
- * Do not add triple-slash references or module import targets to the list of compiled files.
214
- *
215
- * @defaultValue false
216
- */
217
- noResolve?: boolean;
218
- /**
219
- * Disable strict checking of generic signatures in function types.
220
- *
221
- * @defaultValue false
222
- * @deprecated This option will be removed in TypeScript 5.5.
223
- */
224
- noStrictGenericChecks?: boolean;
225
- /**
226
- * @deprecated use `skipLibCheck` instead.
227
- */
228
- skipDefaultLibCheck?: boolean;
229
- /**
230
- * Skip type checking of declaration files.
231
- *
232
- * @defaultValue false
233
- */
234
- skipLibCheck?: boolean;
235
- /**
236
- * Concatenate and emit output to single file.
237
- */
238
- outFile?: string;
239
- /**
240
- * Redirect output structure to the directory.
241
- */
242
- outDir?: string;
243
- /**
244
- * Do not erase const enum declarations in generated code.
245
- *
246
- * @defaultValue false
247
- */
248
- preserveConstEnums?: boolean;
249
- /**
250
- * Do not resolve symlinks to their real path; treat a symlinked file like a real one.
251
- *
252
- * @defaultValue false
253
- */
254
- preserveSymlinks?: boolean;
255
- /**
256
- * Keep outdated console output in watch mode instead of clearing the screen.
257
- *
258
- * @defaultValue false
259
- */
260
- preserveWatchOutput?: boolean;
261
- /**
262
- * Stylize errors and messages using color and context (experimental).
263
- *
264
- * @defaultValue true // Unless piping to another program or redirecting output to a file.
265
- */
266
- pretty?: boolean;
267
- /**
268
- * Do not emit comments to output.
269
- *
270
- * @defaultValue false
271
- */
272
- removeComments?: boolean;
273
- /**
274
- * Specifies the root directory of input files.
275
- *
276
- * Use to control the output directory structure with `--outDir`.
277
- */
278
- rootDir?: string;
279
- /**
280
- * Unconditionally emit imports for unresolved files.
281
- *
282
- * @defaultValue false
283
- */
284
- isolatedModules?: boolean;
285
- /**
286
- * Generates corresponding '.map' file.
287
- *
288
- * @defaultValue false
289
- */
290
- sourceMap?: boolean;
291
- /**
292
- * Specifies the location where debugger should locate TypeScript files instead of source locations.
293
- */
294
- sourceRoot?: string;
295
- /**
296
- * Suppress excess property checks for object literals.
297
- *
298
- * @defaultValue false
299
- * @deprecated This option will be removed in TypeScript 5.5.
300
- */
301
- suppressExcessPropertyErrors?: boolean;
302
- /**
303
- * Suppress noImplicitAny errors for indexing objects lacking index signatures.
304
- *
305
- * @defaultValue false
306
- * @deprecated This option will be removed in TypeScript 5.5.
307
- */
308
- suppressImplicitAnyIndexErrors?: boolean;
309
- /**
310
- * Do not emit declarations for code that has an `@internal` annotation.
311
- */
312
- stripInternal?: boolean;
313
- /**
314
- * Specify ECMAScript target version.
315
- *
316
- * @defaultValue 'es3'
317
- */
318
- target?: Target;
319
- /**
320
- * Default catch clause variables as `unknown` instead of `any`.
321
- *
322
- * @defaultValue false
323
- */
324
- useUnknownInCatchVariables?: boolean;
325
- /**
326
- * Watch input files.
327
- *
328
- * @defaultValue false
329
- * @deprecated Use watchOptions instead.
330
- */
331
- watch?: boolean;
332
- /**
333
- * Specify the polling strategy to use when the system runs out of or doesn't support native file watchers.
334
- *
335
- * @deprecated Use watchOptions.fallbackPolling instead.
336
- */
337
- fallbackPolling?: FallbackPolling;
338
- /**
339
- * Specify the strategy for watching directories under systems that lack recursive file-watching functionality.
340
- *
341
- * @defaultValue 'useFsEvents'
342
- * @deprecated Use watchOptions.watchDirectory instead.
343
- */
344
- watchDirectory?: WatchDirectory;
345
- /**
346
- * Specify the strategy for watching individual files.
347
- *
348
- * @defaultValue 'useFsEvents'
349
- * @deprecated Use watchOptions.watchFile instead.
350
- */
351
- watchFile?: WatchFile;
352
- /**
353
- * Enables experimental support for ES7 decorators.
354
- *
355
- * @defaultValue false
356
- */
357
- experimentalDecorators?: boolean;
358
- /**
359
- * Emit design-type metadata for decorated declarations in source.
360
- *
361
- * @defaultValue false
362
- */
363
- emitDecoratorMetadata?: boolean;
364
- /**
365
- * Do not report errors on unused labels.
366
- *
367
- * @defaultValue false
368
- */
369
- allowUnusedLabels?: boolean;
370
- /**
371
- * Report error when not all code paths in function return a value.
372
- *
373
- * @defaultValue false
374
- */
375
- noImplicitReturns?: boolean;
376
- /**
377
- * Add `undefined` to a type when accessed using an index.
378
- *
379
- * @defaultValue false
380
- */
381
- noUncheckedIndexedAccess?: boolean;
382
- /**
383
- * Report errors for fallthrough cases in switch statement.
384
- *
385
- * @defaultValue false
386
- */
387
- noFallthroughCasesInSwitch?: boolean;
388
- /**
389
- * Ensure overriding members in derived classes are marked with an override modifier.
390
- *
391
- * @defaultValue false
392
- */
393
- noImplicitOverride?: boolean;
394
- /**
395
- * Do not report errors on unreachable code.
396
- *
397
- * @defaultValue false
398
- */
399
- allowUnreachableCode?: boolean;
400
- /**
401
- * Disallow inconsistently-cased references to the same file.
402
- *
403
- * @defaultValue true
404
- */
405
- forceConsistentCasingInFileNames?: boolean;
406
- /**
407
- * Emit a v8 CPU profile of the compiler run for debugging.
408
- *
409
- * @defaultValue 'profile.cpuprofile'
410
- */
411
- generateCpuProfile?: string;
412
- /**
413
- * Base directory to resolve non-relative module names.
414
- */
415
- baseUrl?: string;
416
- /**
417
- * Specify path mapping to be computed relative to baseUrl option.
418
- */
419
- paths?: Record<string, string[]>;
420
- /**
421
- * List of TypeScript language server plugins to load.
422
- */
423
- plugins?: Plugin[];
424
- /**
425
- * Specify list of root directories to be used when resolving modules.
426
- */
427
- rootDirs?: string[];
428
- /**
429
- * Specify list of directories for type definition files to be included.
430
- */
431
- typeRoots?: string[];
432
- /**
433
- * Type declaration files to be included in compilation.
434
- */
435
- types?: string[];
436
- /**
437
- * Enable tracing of the name resolution process.
438
- *
439
- * @defaultValue false
440
- */
441
- traceResolution?: boolean;
442
- /**
443
- * Allow javascript files to be compiled.
444
- *
445
- * @defaultValue false
446
- */
447
- allowJs?: boolean;
448
- /**
449
- * Do not truncate error messages.
450
- *
451
- * @defaultValue false
452
- */
453
- noErrorTruncation?: boolean;
454
- /**
455
- * Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
456
- *
457
- * @defaultValue module === 'system' || esModuleInterop
458
- */
459
- allowSyntheticDefaultImports?: boolean;
460
- /**
461
- * Do not emit `'use strict'` directives in module output.
462
- *
463
- * @defaultValue false
464
- * @deprecated This option will be removed in TypeScript 5.5.
465
- */
466
- noImplicitUseStrict?: boolean;
467
- /**
468
- * Enable to list all emitted files.
469
- *
470
- * @defaultValue false
471
- */
472
- listEmittedFiles?: boolean;
473
- /**
474
- * Disable size limit for JavaScript project.
475
- *
476
- * @defaultValue false
477
- */
478
- disableSizeLimit?: boolean;
479
- /**
480
- * List of library files to be included in the compilation.
481
- */
482
- lib?: Lib[];
483
- /**
484
- * Enable strict null checks.
485
- *
486
- * @defaultValue false
487
- */
488
- strictNullChecks?: boolean;
489
- /**
490
- * The maximum dependency depth to search under `node_modules` and load JavaScript files. Only applicable with `--allowJs`.
491
- *
492
- * @defaultValue 0
493
- */
494
- maxNodeModuleJsDepth?: number;
495
- /**
496
- * Import emit helpers (e.g. `__extends`, `__rest`, etc..) from tslib.
497
- *
498
- * @defaultValue false
499
- */
500
- importHelpers?: boolean;
501
- /**
502
- * Specify emit/checking behavior for imports that are only used for types.
503
- *
504
- * @defaultValue 'remove'
505
- * @deprecated Use `verbatimModuleSyntax` instead.
506
- */
507
- importsNotUsedAsValues?: ImportsNotUsedAsValues;
508
- /**
509
- * Parse in strict mode and emit `'use strict'` for each source file.
510
- *
511
- * @defaultValue false
512
- */
513
- alwaysStrict?: boolean;
514
- /**
515
- * Enable all strict type checking options.
516
- *
517
- * @defaultValue false
518
- */
519
- strict?: boolean;
520
- /**
521
- * Enable stricter checking of of the `bind`, `call`, and `apply` methods on functions.
522
- *
523
- * @defaultValue false
524
- */
525
- strictBindCallApply?: boolean;
526
- /**
527
- * Provide full support for iterables in `for-of`, spread, and destructuring when targeting `ES5` or `ES3`.
528
- *
529
- * @defaultValue false
530
- */
531
- downlevelIteration?: boolean;
532
- /**
533
- * Report errors in `.js` files.
534
- *
535
- * @defaultValue false
536
- */
537
- checkJs?: boolean;
538
- /**
539
- * Disable bivariant parameter checking for function types.
540
- *
541
- * @defaultValue false
542
- */
543
- strictFunctionTypes?: boolean;
544
- /**
545
- * Ensure non-undefined class properties are initialized in the constructor.
546
- *
547
- * @defaultValue false
548
- */
549
- strictPropertyInitialization?: boolean;
550
- /**
551
- * Emit `__importStar` and `__importDefault` helpers for runtime Babel ecosystem compatibility and enable `--allowSyntheticDefaultImports` for typesystem compatibility.
552
- *
553
- * @defaultValue false
554
- */
555
- esModuleInterop?: boolean;
556
- /**
557
- * Allow accessing UMD globals from modules.
558
- *
559
- * @defaultValue false
560
- */
561
- allowUmdGlobalAccess?: boolean;
562
- /**
563
- * Resolve `keyof` to string valued property names only (no numbers or symbols).
564
- *
565
- * @defaultValue false
566
- * @deprecated This option will be removed in TypeScript 5.5.
567
- */
568
- keyofStringsOnly?: boolean;
569
- /**
570
- * Emit ECMAScript standard class fields.
571
- *
572
- * @defaultValue false
573
- */
574
- useDefineForClassFields?: boolean;
575
- /**
576
- * Generates a sourcemap for each corresponding `.d.ts` file.
577
- *
578
- * @defaultValue false
579
- */
580
- declarationMap?: boolean;
581
- /**
582
- * Include modules imported with `.json` extension.
583
- *
584
- * @defaultValue false
585
- */
586
- resolveJsonModule?: boolean;
587
- /**
588
- * Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it.
589
- *
590
- * @defaultValue false
591
- */
592
- assumeChangesOnlyAffectDirectDependencies?: boolean;
593
- /**
594
- * Output more detailed compiler performance information after building.
595
- *
596
- * @defaultValue false
597
- */
598
- extendedDiagnostics?: boolean;
599
- /**
600
- * Print names of files that are part of the compilation and then stop processing.
601
- *
602
- * @defaultValue false
603
- */
604
- listFilesOnly?: boolean;
605
- /**
606
- * Disable preferring source files instead of declaration files when referencing composite projects.
607
- *
608
- * @defaultValue true if composite, false otherwise
609
- */
610
- disableSourceOfProjectReferenceRedirect?: boolean;
611
- /**
612
- * Opt a project out of multi-project reference checking when editing.
613
- *
614
- * @defaultValue false
615
- */
616
- disableSolutionSearching?: boolean;
617
- /**
618
- * Print names of files which TypeScript sees as a part of your project and the reason they are part of the compilation.
619
- *
620
- * @defaultValue false
621
- */
622
- explainFiles?: boolean;
623
- /**
624
- * Preserve unused imported values in the JavaScript output that would otherwise be removed.
625
- *
626
- * @defaultValue true
627
- * @deprecated Use `verbatimModuleSyntax` instead.
628
- */
629
- preserveValueImports?: boolean;
630
- /**
631
- * List of file name suffixes to search when resolving a module.
632
- */
633
- moduleSuffixes?: string[];
634
- /**
635
- * Control what method is used to detect module-format JS files.
636
- *
637
- * @defaultValue 'auto'
638
- */
639
- moduleDetection?: ModuleDetection;
640
- /**
641
- * Allows TypeScript files to import each other with a TypeScript-specific extension like .ts, .mts, or .tsx.
642
- *
643
- * @defaultValue false
644
- */
645
- allowImportingTsExtensions?: boolean;
646
- /**
647
- * Forces TypeScript to consult the exports field of package.json files if it ever reads from a package in node_modules.
648
- *
649
- * @defaultValue false
650
- */
651
- resolvePackageJsonExports?: boolean;
652
- /**
653
- * Forces TypeScript to consult the imports field of package.json files when performing a lookup that starts with # from a file whose ancestor directory contains a package.json.
654
- *
655
- * @defaultValue false
656
- */
657
- resolvePackageJsonImports?: boolean;
658
- /**
659
- * Suppress errors for file formats that TypeScript does not understand.
660
- *
661
- * @defaultValue false
662
- */
663
- allowArbitraryExtensions?: boolean;
664
- /**
665
- * List of additional conditions that should succeed when TypeScript resolves from package.json.
666
- */
667
- customConditions?: string[];
668
- /**
669
- * Anything that uses the type modifier is dropped entirely.
670
- *
671
- * @defaultValue false
672
- */
673
- verbatimModuleSyntax?: boolean;
674
- /**
675
- * Suppress deprecation warnings
676
- */
677
- ignoreDeprecations?: IgnoreDeprecations;
678
- }
679
- export type WatchFileKind = "FixedPollingInterval" | "PriorityPollingInterval" | "DynamicPriorityPolling" | "FixedChunkSizePolling" | "UseFsEvents" | "UseFsEventsOnParentDirectory";
680
- export type WatchDirectoryKind = "UseFsEvents" | "FixedPollingInterval" | "DynamicPriorityPolling" | "FixedChunkSizePolling";
681
- export type PollingWatchKind = "FixedInterval" | "PriorityInterval" | "DynamicPriority" | "FixedChunkSize";
682
- export interface WatchOptions {
683
- /**
684
- * Specify the strategy for watching individual files.
685
- *
686
- * @defaultValue 'UseFsEvents'
687
- */
688
- watchFile?: WatchFileKind | Lowercase<WatchFileKind>;
689
- /**
690
- * Specify the strategy for watching directories under systems that lack recursive file-watching functionality.
691
- *
692
- * @defaultValue 'UseFsEvents'
693
- */
694
- watchDirectory?: WatchDirectoryKind | Lowercase<WatchDirectoryKind>;
695
- /**
696
- * Specify the polling strategy to use when the system runs out of or doesn't support native file watchers.
697
- */
698
- fallbackPolling?: PollingWatchKind | Lowercase<PollingWatchKind>;
699
- /**
700
- * Enable synchronous updates on directory watchers for platforms that don't support recursive watching natively.
701
- */
702
- synchronousWatchDirectory?: boolean;
703
- /**
704
- * Specifies a list of directories to exclude from watch
705
- */
706
- excludeDirectories?: string[];
707
- /**
708
- * Specifies a list of files to exclude from watch
709
- */
710
- excludeFiles?: string[];
711
- }
712
- /**
713
- * Auto type (.d.ts) acquisition options for this project.
714
- */
715
- export interface TypeAcquisition {
716
- /**
717
- * Enable auto type acquisition.
718
- */
719
- enable?: boolean;
720
- /**
721
- * Specifies a list of type declarations to be included in auto type acquisition. For example, `['jquery', 'lodash']`.
722
- */
723
- include?: string[];
724
- /**
725
- * Specifies a list of type declarations to be excluded from auto type acquisition. For example, `['jquery', 'lodash']`.
726
- */
727
- exclude?: string[];
728
- }
729
- export interface References {
730
- /**
731
- * A normalized path on disk.
732
- */
733
- path: string;
734
- /**
735
- * The path as the user originally wrote it.
736
- */
737
- originalPath?: string;
738
- /**
739
- * True if the output of this reference should be prepended to the output of this project.
740
- *
741
- * Only valid for `--outFile` compilations.
742
- * @deprecated This option will be removed in TypeScript 5.5.
743
- */
744
- prepend?: boolean;
745
- /**
746
- * True if it is intended that this reference form a circularity.
747
- */
748
- circular?: boolean;
749
- }
750
- /**
751
- * Type for [TypeScript's `tsconfig.json` file](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) (TypeScript 3.7).
752
- */
753
- export interface TsConfigJson {
754
- /**
755
- * Instructs the TypeScript compiler how to compile `.ts` files.
756
- */
757
- compilerOptions?: CompilerOptions;
758
- /**
759
- * Instructs the TypeScript compiler how to watch files.
760
- */
761
- watchOptions?: WatchOptions;
762
- /**
763
- * Auto type (.d.ts) acquisition options for this project.
764
- */
765
- typeAcquisition?: TypeAcquisition;
766
- /**
767
- * Enable Compile-on-Save for this project.
768
- */
769
- compileOnSave?: boolean;
770
- /**
771
- * Path to base configuration file to inherit from.
772
- */
773
- extends?: string | string[];
774
- /**
775
- * If no `files` or `include` property is present in a `tsconfig.json`, the compiler defaults to including all files in the containing directory and subdirectories except those specified by `exclude`. When a `files` property is specified, only those files and those specified by `include` are included.
776
- */
777
- files?: string[];
778
- /**
779
- * A value used by [Deepkit](https://deepkit.io/documentation/runtime-types/getting-started) to enable the generation of runtime types.
780
- */
781
- reflection?: boolean;
782
- /**
783
- * Specifies a list of files to be excluded from compilation. The `exclude` property only affects the files included via the `include` property and not the `files` property.
784
- *
785
- * Glob patterns require TypeScript version 2.0 or later.
786
- */
787
- exclude?: FilterPattern[];
788
- /**
789
- * Specifies a list of glob patterns that match files to be included in compilation.
790
- *
791
- * If no `files` or `include` property is present in a `tsconfig.json`, the compiler defaults to including all files in the containing directory and subdirectories except those specified by `exclude`.
792
- */
793
- include?: FilterPattern[];
794
- /**
795
- * Referenced projects.
796
- */
797
- references?: References[];
798
- }