Skip to content

Commit 76b9e2b

Browse files
committed
Revert "refactor(migrations): initial migration logic for converting to signal queries (#57525)" (#57555)
This reverts commit 6f5b435. Reason: breaks g3 PR Close #57555
1 parent 0ba2a95 commit 76b9e2b

File tree

11 files changed

+6
-647
lines changed

11 files changed

+6
-647
lines changed

packages/core/schematics/migrations/signal-migration/src/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ts_library(
77
exclude = ["test/**"],
88
),
99
visibility = [
10-
"//packages/core/schematics/migrations/signal-queries-migration:__pkg__",
10+
"//packages/core/schematics/migrations/signal-migration/src/batch:__pkg__",
1111
"//packages/language-service:__subpackages__",
1212
],
1313
deps = [

packages/core/schematics/migrations/signal-migration/src/utils/remove_from_union.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,10 @@ import ts from 'typescript';
1111
export function removeFromUnionIfPossible(
1212
union: ts.UnionTypeNode,
1313
filter: (v: ts.TypeNode) => boolean,
14-
): ts.TypeNode {
14+
): ts.UnionTypeNode {
1515
const filtered = union.types.filter(filter);
1616
if (filtered.length === union.types.length) {
1717
return union;
1818
}
19-
// If there is only item at this point, avoid the union structure.
20-
if (filtered.length === 1) {
21-
return filtered[0];
22-
}
2319
return ts.factory.updateUnionTypeNode(union, ts.factory.createNodeArray(filtered));
2420
}

packages/core/schematics/migrations/signal-queries-migration/BUILD.bazel

Lines changed: 0 additions & 41 deletions
This file was deleted.

packages/core/schematics/migrations/signal-queries-migration/convert_query_property.ts

Lines changed: 0 additions & 133 deletions
This file was deleted.

packages/core/schematics/migrations/signal-queries-migration/identify_queries.ts

Lines changed: 0 additions & 119 deletions
This file was deleted.

0 commit comments

Comments
 (0)