visitNodesWithoutCopyingPositions always makes a new NodeArray (#59137)

This commit is contained in:
Isabel Duan
2024-07-16 13:50:17 -07:00
committed by GitHub
parent 0206f9fa6e
commit 66a762f59d
2 changed files with 39 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
/// <reference path="fourslash.ts" />
// @module: preserve
// @Filename: /TLLineShape.ts
//// import { createShapePropsMigrationIds } from "./TLShape";
//// createShapePropsMigrationIds/**/
// @Filename: /TLShape.ts
//// import { T } from "@tldraw/validate";
////
//// /**
//// * @public
//// */
//// export function createShapePropsMigrationIds<T>(): { [k in keyof T]: any } {
//// return;
//// }
verify.completions({
marker: "",
includes: [
{
name: "createShapePropsMigrationIds",
text: "(alias) function createShapePropsMigrationIds<T>(): { [k in keyof T]: any; }\nimport createShapePropsMigrationIds",
tags: [{ name: "public", text: undefined }]
}
]
});
goTo.file("/TLShape.ts");
verify.organizeImports(
`
/**
* @public
*/
export function createShapePropsMigrationIds<T>(): { [k in keyof T]: any } {
return;
}`);