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
## Description
Adopts a new pattern for documenting workarounds for
microsoft/TypeScript#55758, making the
documentation more centralized, and more clear about what the desired
extends clauses are.
Also avoids using the constructor for FieldSchema and instead use static
builders whose type parameters can be constrained.
This, when combined with `const` generic type parameters removes the
reason for existence of the generic FieldSchema builders on
SchemaBuilder, so those have been removed (the ones which depend on
specific field kinds are kept).
Also adds some runtime validation in FieldSchema for cases the type
system can't fully handle.
## Breaking Changes
Users of SchemaBuilder.field (or new FieldSchema) and
SchmeaBuilder.fieldRecursive should use FieldSchema.create and
FieldSchema.createUnsafe.
Copy file name to clipboardExpand all lines: experimental/dds/tree2/src/domains/testRecursiveDomain.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
* Currently we do not have tooling in place to test this in our test suite, and exporting these types here is a temporary crutch to aid in diagnosing this issue.
// Additionally this approach makes it possible for a user to take an EditableTree node, get its parent, check its schema, down cast based on that, then edit that detached field (ex: removing the node in it).
232
232
// This MIGHT work properly with existing merge resolution logic (it must keep client in sync and be unable to violate schema), but this either needs robust testing or to be explicitly banned (error before s3ending the op).
233
233
// Issues like replacing a node in the a removed sequenced then undoing the remove could easily violate schema if not everything works exactly right!
0 commit comments