File tree 2 files changed +39
-1
lines changed 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -8969,7 +8969,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
8969
8969
if (result) {
8970
8970
if (result.pos !== -1 || result.end !== -1) {
8971
8971
if (result === nodes) {
8972
- result = factory.createNodeArray(nodes, nodes.hasTrailingComma);
8972
+ result = factory.createNodeArray(nodes.slice() , nodes.hasTrailingComma);
8973
8973
}
8974
8974
setTextRangePosEnd(result, -1, -1);
8975
8975
}
Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts" />
2
+
3
+ // @module : preserve
4
+
5
+ // @Filename : /TLLineShape.ts
6
+ //// import { createShapePropsMigrationIds } from "./TLShape";
7
+ //// createShapePropsMigrationIds/**/
8
+
9
+ // @Filename : /TLShape.ts
10
+ //// import { T } from "@tldraw/validate";
11
+ ////
12
+ //// /**
13
+ //// * @public
14
+ //// */
15
+ //// export function createShapePropsMigrationIds<T>(): { [k in keyof T]: any } {
16
+ //// return;
17
+ //// }
18
+
19
+ verify . completions ( {
20
+ marker : "" ,
21
+ includes : [
22
+ {
23
+ name : "createShapePropsMigrationIds" ,
24
+ text : "(alias) function createShapePropsMigrationIds<T>(): { [k in keyof T]: any; }\nimport createShapePropsMigrationIds" ,
25
+ tags : [ { name : "public" , text : undefined } ]
26
+ }
27
+ ]
28
+ } ) ;
29
+
30
+ goTo . file ( "/TLShape.ts" ) ;
31
+ verify . organizeImports (
32
+ `
33
+ /**
34
+ * @public
35
+ */
36
+ export function createShapePropsMigrationIds<T>(): { [k in keyof T]: any } {
37
+ return;
38
+ }` ) ;
You can’t perform that action at this time.
0 commit comments