You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/ts-twoslasher/README.md
+11-17Lines changed: 11 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -233,12 +233,6 @@ Turns to:
233
233
> {
234
234
> "completions": [
235
235
> {
236
-
> "name": "memory",
237
-
> "kind": "property",
238
-
> "kindModifiers": "declare",
239
-
> "sortText": "1"
240
-
> },
241
-
> {
242
236
> "name": "assert",
243
237
> "kind": "method",
244
238
> "kindModifiers": "declare",
@@ -287,12 +281,6 @@ Turns to:
287
281
> "sortText": "1"
288
282
> },
289
283
> {
290
-
> "name": "exception",
291
-
> "kind": "method",
292
-
> "kindModifiers": "declare",
293
-
> "sortText": "1"
294
-
> },
295
-
> {
296
284
> "name": "group",
297
285
> "kind": "method",
298
286
> "kindModifiers": "declare",
@@ -536,7 +524,7 @@ Turns to:
536
524
> "start": 72,
537
525
> "line": 2,
538
526
> "character": 0,
539
-
> "renderedMessage": "Type 'Record<string, string>' is not assignable to type 'Record<string, number>'.\nIndex signatures are incompatible.\n Type 'string' is not assignable to type 'number'.",
527
+
> "renderedMessage": "Type 'Record<string, string>' is not assignable to type 'Record<string, number>'.\n'string' index signatures are incompatible.\n Type 'string' is not assignable to type 'number'.",
540
528
> "id": "err-2322-72-1"
541
529
> }
542
530
> ],
@@ -754,12 +742,18 @@ Turns to:
754
742
> }
755
743
> var __spreadArray =
756
744
> (this && this.__spreadArray) ||
757
-
> function (to, from) {
758
-
> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i]
759
-
> return to
745
+
> function (to, from, pack) {
746
+
> if (pack || arguments.length === 2)
747
+
> for (var i = 0, l = from.length, ar; i < l; i++) {
748
+
> if (ar || !(i in from)) {
749
+
> if (!ar) ar = Array.prototype.slice.call(from, 0, i)
750
+
> ar[i] = from[i]
751
+
> }
752
+
> }
753
+
> return to.concat(ar || from)
760
754
> }
761
755
> export function fn(arr) {
762
-
> var arr2 = __spreadArray([1], __read(arr))
756
+
> var arr2 = __spreadArray([1], __read(arr), false)
thrownewError(`No compiler setting named '${name}' exists!`)
200
+
thrownewTwoslashError(
201
+
`Invalid inline compiler flag`,
202
+
`There isn't a TypeScript compiler flag called '${name}'.`,
203
+
`This is likely a typo, you can check all the compiler flags in the TSConfig reference, or check the additional Twoslash flags in the npm page for @typescript/twoslash.`
thrownewError(`Cannot find the file ${handbookOptions.showEmittedFile} (looking for: ${fsRoot+handbookOptions.showEmittedFile} in the vfs) - in ${allFiles}`)
723
+
thrownewTwoslashError(
724
+
`Cannot find the output file in the Twoslash VFS`,
725
+
`Looking for ${handbookOptions.showEmittedFile} in the Twoslash vfs after compiling`,
726
+
`Looked for" ${fsRoot+handbookOptions.showEmittedFile} in the vfs - which contains ${allFiles}.`
0 commit comments