@@ -15,7 +15,7 @@ export function adaptEnum<TScope extends string, const TEnum extends Record<stri
1515 }, Record <string , never >, true , Record <string , never >, undefined >; }[keyof TEnum ]>;
1616};
1717
18- // @alpha @input
18+ // @beta @input
1919export interface AllowedTypeMetadata {
2020 readonly custom? : unknown ;
2121 readonly stagedSchemaUpgrade? : SchemaUpgrade ;
@@ -24,13 +24,13 @@ export interface AllowedTypeMetadata {
2424// @public @system
2525export type AllowedTypes = readonly LazyItem <TreeNodeSchema >[];
2626
27- // @alpha @sealed
27+ // @beta @sealed
2828export type AllowedTypesFull <T extends readonly AnnotatedAllowedType [] = readonly AnnotatedAllowedType []> = AnnotatedAllowedTypes <T > & UnannotateAllowedTypesList <T >;
2929
30- // @alpha @sealed
30+ // @beta @sealed
3131export type AllowedTypesFullEvaluated = AllowedTypesFull <readonly AnnotatedAllowedType <TreeNodeSchema >[]>;
3232
33- // @alpha @sealed
33+ // @beta @sealed @system
3434export type AllowedTypesFullFromMixed <T extends readonly (AnnotatedAllowedType | LazyItem <TreeNodeSchema >)[]> = UnannotateAllowedTypesList <T > & AnnotatedAllowedTypes <AnnotateAllowedTypesList <T >>;
3535
3636// @alpha @sealed @system
@@ -39,15 +39,15 @@ export type AllowedTypesFullFromMixedUnsafe<T extends readonly Unenforced<Annota
3939// @alpha @sealed @system
4040export type AllowedTypesFullUnsafe <T extends readonly AnnotatedAllowedTypeUnsafe [] = readonly AnnotatedAllowedTypeUnsafe []> = AnnotatedAllowedTypes <T > & UnannotateAllowedTypesListUnsafe <T >;
4141
42- // @alpha @input
42+ // @beta @input
4343export interface AllowedTypesMetadata {
4444 readonly custom? : unknown ;
4545}
4646
4747// @alpha
4848export function allowUnused<T >(t ? : T ): void ;
4949
50- // @alpha @system
50+ // @beta @system
5151export type AnnotateAllowedTypesList <T extends readonly (AnnotatedAllowedType | LazyItem <TreeNodeSchema >)[]> = {
5252 [I in keyof T ]: T [I ] extends AnnotatedAllowedType <unknown > ? T [I ] : AnnotatedAllowedType <T [I ]>;
5353};
@@ -57,13 +57,13 @@ export type AnnotateAllowedTypesListUnsafe<T extends readonly Unenforced<Annotat
5757 [I in keyof T ]: T [I ] extends AnnotatedAllowedTypeUnsafe ? T [I ] : AnnotatedAllowedTypeUnsafe <T [I ]>;
5858};
5959
60- // @alpha @sealed
60+ // @beta @sealed
6161export interface AnnotatedAllowedType <T = LazyItem <TreeNodeSchema >> {
6262 readonly metadata: AllowedTypeMetadata ;
6363 readonly type: T ;
6464}
6565
66- // @alpha @sealed
66+ // @beta @sealed
6767export interface AnnotatedAllowedTypes <T = readonly AnnotatedAllowedType []> extends ErasedBaseType <" tree.AnnotatedAllowedTypes" > {
6868 evaluate(): AllowedTypesFullEvaluated ;
6969 evaluateIdentifiers(): ReadonlySet <string >;
@@ -310,7 +310,7 @@ export namespace FluidSerializableAsTree {
310310 export type Data = JsonCompatible <IFluidHandle >;
311311 const // @system
312312 _APIExtractorWorkaroundObjectBase : TreeNodeSchemaClass_2 < " com.fluidframework.serializable.object" , NodeKind_2 .Record , TreeRecordNodeUnsafe_2 < readonly [() => typeof FluidSerializableObject , () => typeof Array , LeafSchema_2 < " string" , string > , LeafSchema_2 < " number" , number > , LeafSchema_2 < " boolean" , boolean > , LeafSchema_2 < " null" , null > , LeafSchema_2 < " handle" , IFluidHandle < unknown >> ]> & WithType_2 < " com.fluidframework.serializable.object" , NodeKind_2 .Record , unknown > , {
313- readonly [x : string ]: string | number | IFluidHandle < unknown > | System_Unsafe_2 .InsertableTypedNodeUnsafe < LeafSchema_2 < " boolean" , boolean>, LeafSchema_2<" boolean" , boolean>> | FluidSerializableObject | Array | null;
313+ readonly [x : string ]: string | number | IFluidHandle < unknown > | FluidSerializableObject | Array | System_Unsafe_2 .InsertableTypedNodeUnsafe < LeafSchema_2 < " boolean" , boolean>, LeafSchema_2<" boolean" , boolean>> | null;
314314 }, false , readonly [() => typeof FluidSerializableObject , () => typeof Array , LeafSchema_2 < " string" , string > , LeafSchema_2 < " number" , number > , LeafSchema_2 < " boolean" , boolean > , LeafSchema_2 < " null" , null > , LeafSchema_2 < " handle" , IFluidHandle < unknown >> ], undefined , unknown > ;
315315 // @sealed
316316 export class FluidSerializableObject extends _APIExtractorWorkaroundObjectBase {
@@ -319,7 +319,7 @@ export namespace FluidSerializableAsTree {
319319 export type _RecursiveArrayWorkaroundJsonArray = FixRecursiveArraySchema <typeof Array >;
320320 const // @system
321321 _APIExtractorWorkaroundArrayBase : TreeNodeSchemaClass_2 < " com.fluidframework.serializable.array" , NodeKind_2 .Array , System_Unsafe_2 .TreeArrayNodeUnsafe < readonly [() => typeof FluidSerializableObject , () => typeof Array , LeafSchema_2 < " string" , string > , LeafSchema_2 < " number" , number > , LeafSchema_2 < " boolean" , boolean > , LeafSchema_2 < " null" , null > , LeafSchema_2 < " handle" , IFluidHandle < unknown >> ]> & WithType_2 < " com.fluidframework.serializable.array" , NodeKind_2 .Array , unknown > , {
322- [Symbol .iterator ](): Iterator <string | number | IFluidHandle <unknown > | System_Unsafe_2 .InsertableTypedNodeUnsafe <LeafSchema_2 <" boolean" , boolean >, LeafSchema_2 <" boolean" , boolean >> | FluidSerializableObject | Array | null , any , undefined >;
322+ [Symbol .iterator ](): Iterator <string | number | IFluidHandle <unknown > | FluidSerializableObject | Array | System_Unsafe_2 .InsertableTypedNodeUnsafe <LeafSchema_2 <" boolean" , boolean >, LeafSchema_2 <" boolean" , boolean >> | null , any , undefined >;
323323 }, false , readonly [() => typeof FluidSerializableObject , () => typeof Array , LeafSchema_2 < " string" , string > , LeafSchema_2 < " number" , number > , LeafSchema_2 < " boolean" , boolean > , LeafSchema_2 < " null" , null > , LeafSchema_2 < " handle" , IFluidHandle < unknown >> ], undefined > ;
324324 // (undocumented)
325325 export type Tree = TreeNodeFromImplicitAllowedTypes <typeof Tree >;
@@ -512,7 +512,7 @@ export namespace JsonAsTree {
512512 }
513513 const // @system
514514 _APIExtractorWorkaroundObjectBase : TreeNodeSchemaClass < " com.fluidframework.json.object" , NodeKind .Record , TreeRecordNodeUnsafe < readonly [LeafSchema < " null" , null > , LeafSchema < " number" , number > , LeafSchema < " string" , string > , LeafSchema < " boolean" , boolean > , () => typeof JsonObject , () => typeof Array ]> & WithType < " com.fluidframework.json.object" , NodeKind .Record , unknown > , {
515- readonly [x : string ]: string | number | JsonObject | Array | System_Unsafe .InsertableTypedNodeUnsafe < LeafSchema < " boolean" , boolean>, LeafSchema<" boolean" , boolean>> | null;
515+ readonly [x : string ]: string | number | System_Unsafe .InsertableTypedNodeUnsafe < LeafSchema < " boolean" , boolean>, LeafSchema<" boolean" , boolean>> | JsonObject | Array | null;
516516 }, false , readonly [LeafSchema < " null" , null > , LeafSchema < " number" , number > , LeafSchema < " string" , string > , LeafSchema < " boolean" , boolean > , () => typeof JsonObject , () => typeof Array ], undefined , unknown > ;
517517 export type Primitive = TreeNodeFromImplicitAllowedTypes <typeof Primitive >;
518518 // @system
@@ -968,7 +968,7 @@ export interface SchemaStaticsAlpha {
968968// @alpha
969969export const schemaSymbol: unique symbol ;
970970
971- // @alpha @sealed
971+ // @beta @sealed
972972export class SchemaUpgrade {
973973 // (undocumented)
974974 protected _typeCheck: MakeNominal ;
@@ -1642,7 +1642,7 @@ const typeNameSymbol: unique symbol;
16421642// @public @system
16431643export const typeSchemaSymbol : unique symbol ;
16441644
1645- // @alpha @system
1645+ // @beta @system
16461646export type UnannotateAllowedTypesList <T extends readonly (AnnotatedAllowedType | LazyItem <TreeNodeSchema >)[]> = {
16471647 [I in keyof T ]: T [I ] extends AnnotatedAllowedType <infer X > ? X : T [I ];
16481648};
0 commit comments