mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
45 lines
1016 B
JSON
45 lines
1016 B
JSON
// === findAllReferences ===
|
|
// === /findAllRefsForObjectSpread.ts ===
|
|
// interface A1 { readonly /*FIND ALL REFS*/[|a|]: string };
|
|
// interface A2 { a?: number };
|
|
// let a1: A1;
|
|
// let a2: A2;
|
|
// let a12 = { ...a1, ...a2 };
|
|
// a12.[|a|];
|
|
// a1.[|a|];
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /findAllRefsForObjectSpread.ts ===
|
|
// interface A1 { readonly a: string };
|
|
// interface A2 { /*FIND ALL REFS*/[|a|]?: number };
|
|
// let a1: A1;
|
|
// let a2: A2;
|
|
// let a12 = { ...a1, ...a2 };
|
|
// a12.[|a|];
|
|
// a1.a;
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /findAllRefsForObjectSpread.ts ===
|
|
// interface A1 { readonly [|a|]: string };
|
|
// interface A2 { [|a|]?: number };
|
|
// let a1: A1;
|
|
// let a2: A2;
|
|
// let a12 = { ...a1, ...a2 };
|
|
// a12./*FIND ALL REFS*/[|a|];
|
|
// a1.[|a|];
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /findAllRefsForObjectSpread.ts ===
|
|
// interface A1 { readonly [|a|]: string };
|
|
// interface A2 { a?: number };
|
|
// let a1: A1;
|
|
// let a2: A2;
|
|
// let a12 = { ...a1, ...a2 };
|
|
// a12.[|a|];
|
|
// a1./*FIND ALL REFS*/[|a|]; |