fluid-framework
Advanced tools
Comparing version 2.5.0-302463 to 2.5.0
@@ -590,3 +590,3 @@ ## Beta API Report File for "fluid-framework" | ||
// @public | ||
type NodeBuilderData<T extends TreeNodeSchema> = T extends TreeNodeSchema<string, NodeKind, TreeNode | TreeLeafValue, infer TBuild> ? TBuild : never; | ||
type NodeBuilderData<T extends TreeNodeSchemaCore<string, NodeKind, boolean>> = T extends TreeNodeSchemaCore<string, NodeKind, boolean, unknown, infer TBuild> ? TBuild : never; | ||
@@ -721,12 +721,12 @@ // @public | ||
constructor(scope: TScope); | ||
array<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchemaNonClass<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T>; | ||
array<const Name extends TName, const T extends ImplicitAllowedTypes>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T>; | ||
array<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchemaNonClass<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T, undefined>; | ||
array<const Name extends TName, const T extends ImplicitAllowedTypes>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T, undefined>; | ||
arrayRecursive<const Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array, unknown>, { | ||
[Symbol.iterator](): Iterator<InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>>; | ||
}, false, T>; | ||
readonly boolean: TreeNodeSchema<"com.fluidframework.leaf.boolean", NodeKind.Leaf, boolean, boolean>; | ||
readonly handle: TreeNodeSchema<"com.fluidframework.leaf.handle", NodeKind.Leaf, IFluidHandle<unknown>, IFluidHandle<unknown>>; | ||
}, false, T, undefined>; | ||
readonly boolean: TreeNodeSchemaNonClass<"com.fluidframework.leaf.boolean", NodeKind.Leaf, boolean, boolean, true, unknown, never>; | ||
readonly handle: TreeNodeSchemaNonClass<"com.fluidframework.leaf.handle", NodeKind.Leaf, IFluidHandle<unknown>, IFluidHandle<unknown>, true, unknown, never>; | ||
get identifier(): FieldSchema<FieldKind.Identifier, typeof SchemaFactory.string>; | ||
map<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchemaNonClass<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map>, MapNodeInsertableData<T>, true, T>; | ||
map<Name extends TName, const T extends ImplicitAllowedTypes>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map>, MapNodeInsertableData<T>, true, T>; | ||
map<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchemaNonClass<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map>, MapNodeInsertableData<T>, true, T, undefined>; | ||
map<Name extends TName, const T extends ImplicitAllowedTypes>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map>, MapNodeInsertableData<T>, true, T, undefined>; | ||
mapRecursive<Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map, unknown>, { | ||
@@ -737,5 +737,5 @@ [Symbol.iterator](): Iterator<[ | ||
]>; | ||
}, false, T>; | ||
readonly null: TreeNodeSchema<"com.fluidframework.leaf.null", NodeKind.Leaf, null, null>; | ||
readonly number: TreeNodeSchema<"com.fluidframework.leaf.number", NodeKind.Leaf, number, number>; | ||
}, false, T, undefined>; | ||
readonly null: TreeNodeSchemaNonClass<"com.fluidframework.leaf.null", NodeKind.Leaf, null, null, true, unknown, never>; | ||
readonly number: TreeNodeSchemaNonClass<"com.fluidframework.leaf.number", NodeKind.Leaf, number, number, true, unknown, never>; | ||
object<const Name extends TName, const T extends RestrictiveStringRecord<ImplicitFieldSchema>>(name: Name, fields: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Object, TreeObjectNode<T, ScopedSchemaName<TScope, Name>>, object & InsertableObjectFromSchemaRecord<T>, true, T>; | ||
@@ -749,3 +749,3 @@ objectRecursive<const Name extends TName, const T extends Unenforced<RestrictiveStringRecord<ImplicitFieldSchema>>>(name: Name, t: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Object, TreeObjectNodeUnsafe<T, ScopedSchemaName<TScope, Name>>, object & { readonly [Property in keyof T as FieldHasDefaultUnsafe<T[Property]> extends false ? Property : never]: InsertableTreeFieldFromImplicitFieldUnsafe<T[Property], UnionToIntersection_2<T[Property]>>; } & { readonly [Property_1 in keyof T as FieldHasDefaultUnsafe<T[Property_1]> extends true ? Property_1 : never]?: InsertableTreeFieldFromImplicitFieldUnsafe<T[Property_1], UnionToIntersection_2<T[Property_1]>> | undefined; }, false, T>; | ||
readonly scope: TScope; | ||
readonly string: TreeNodeSchema<"com.fluidframework.leaf.string", NodeKind.Leaf, string, string>; | ||
readonly string: TreeNodeSchemaNonClass<"com.fluidframework.leaf.string", NodeKind.Leaf, string, string, true, unknown, never>; | ||
} | ||
@@ -828,3 +828,3 @@ | ||
on<K extends keyof TreeChangeEventsBeta<TNode>, TNode extends TreeNode>(node: TNode, eventName: K, listener: NoInfer<TreeChangeEventsBeta<TNode>[K]>): () => void; | ||
clone<TSchema extends ImplicitFieldSchema>(node: TreeFieldFromImplicitField<TSchema>): TreeFieldFromImplicitField<TSchema>; | ||
clone<const TSchema extends ImplicitFieldSchema>(node: TreeFieldFromImplicitField<TSchema>): TreeFieldFromImplicitField<TSchema>; | ||
}; | ||
@@ -896,12 +896,13 @@ | ||
// @public @sealed | ||
export type TreeNodeSchema<Name extends string = string, Kind extends NodeKind = NodeKind, TNode extends TreeNode | TreeLeafValue = TreeNode | TreeLeafValue, TBuild = never, ImplicitlyConstructable extends boolean = boolean, Info = unknown> = TreeNodeSchemaClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info> | TreeNodeSchemaNonClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info>; | ||
export type TreeNodeSchema<Name extends string = string, Kind extends NodeKind = NodeKind, TNode extends TreeNode | TreeLeafValue = TreeNode | TreeLeafValue, TBuild = never, ImplicitlyConstructable extends boolean = boolean, Info = unknown> = (TNode extends TreeNode ? TreeNodeSchemaClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info> : never) | TreeNodeSchemaNonClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info>; | ||
// @public @sealed | ||
export interface TreeNodeSchemaClass<out Name extends string = string, out Kind extends NodeKind = NodeKind, out TNode extends TreeNode | TreeLeafValue = TreeNode | TreeLeafValue, in TInsertable = never, out ImplicitlyConstructable extends boolean = boolean, out Info = unknown> extends TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info> { | ||
// @sealed | ||
new (data: TInsertable | InternalTreeNode): Unhydrated<TNode>; | ||
} | ||
export type TreeNodeSchemaClass<Name extends string = string, Kind extends NodeKind = NodeKind, TNode extends TreeNode = TreeNode, TInsertable = never, ImplicitlyConstructable extends boolean = boolean, Info = unknown, TConstructorExtra = never> = TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info, TInsertable> & (undefined extends TConstructorExtra ? { | ||
new (data?: TInsertable | InternalTreeNode | TConstructorExtra): Unhydrated<TNode>; | ||
} : { | ||
new (data: TInsertable | InternalTreeNode | TConstructorExtra): Unhydrated<TNode>; | ||
}); | ||
// @public | ||
export interface TreeNodeSchemaClassUnsafe<out Name extends string, out Kind extends NodeKind, out TNode extends Unenforced<TreeNode | TreeLeafValue>, in TInsertable, out ImplicitlyConstructable extends boolean, out Info> extends TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info> { | ||
export interface TreeNodeSchemaClassUnsafe<out Name extends string, out Kind extends NodeKind, out TNode extends Unenforced<TreeNode>, in TInsertable, out ImplicitlyConstructable extends boolean, out Info> extends TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info> { | ||
// @sealed | ||
@@ -912,4 +913,6 @@ new (data: TInsertable | InternalTreeNode): Unhydrated<TNode>; | ||
// @public @sealed | ||
export interface TreeNodeSchemaCore<out Name extends string, out Kind extends NodeKind, out ImplicitlyConstructable extends boolean, out Info = unknown> { | ||
export interface TreeNodeSchemaCore<out Name extends string, out Kind extends NodeKind, out ImplicitlyConstructable extends boolean, out Info = unknown, out TInsertable = never> { | ||
readonly childTypes: ReadonlySet<TreeNodeSchema>; | ||
// @sealed | ||
createFromInsertable(data: TInsertable): Unhydrated<TreeNode | TreeLeafValue>; | ||
readonly identifier: Name; | ||
@@ -923,6 +926,7 @@ readonly implicitlyConstructable: ImplicitlyConstructable; | ||
// @public @sealed | ||
export interface TreeNodeSchemaNonClass<out Name extends string = string, out Kind extends NodeKind = NodeKind, out TNode extends TreeNode | TreeLeafValue = TreeNode | TreeLeafValue, in TInsertable = never, out ImplicitlyConstructable extends boolean = boolean, out Info = unknown> extends TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info> { | ||
// (undocumented) | ||
create(data: TInsertable): TNode; | ||
} | ||
export type TreeNodeSchemaNonClass<Name extends string = string, Kind extends NodeKind = NodeKind, TNode extends TreeNode | TreeLeafValue = TreeNode | TreeLeafValue, TInsertable = never, ImplicitlyConstructable extends boolean = boolean, Info = unknown, TConstructorExtra = never> = TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info, TInsertable> & (undefined extends TConstructorExtra ? { | ||
create(data?: TInsertable | TConstructorExtra): TNode; | ||
} : { | ||
create(data: TInsertable | TConstructorExtra): TNode; | ||
}); | ||
@@ -1015,5 +1019,5 @@ // @public | ||
get [typeNameSymbol](): TName; | ||
get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind, TreeNode | TreeLeafValue, never, boolean, TInfo>; | ||
get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind, TreeNode, never, boolean, TInfo>; | ||
} | ||
``` |
@@ -626,3 +626,3 @@ ## Public API Report File for "fluid-framework" | ||
// @public | ||
type NodeBuilderData<T extends TreeNodeSchema> = T extends TreeNodeSchema<string, NodeKind, TreeNode | TreeLeafValue, infer TBuild> ? TBuild : never; | ||
type NodeBuilderData<T extends TreeNodeSchemaCore<string, NodeKind, boolean>> = T extends TreeNodeSchemaCore<string, NodeKind, boolean, unknown, infer TBuild> ? TBuild : never; | ||
@@ -752,12 +752,12 @@ // @public | ||
constructor(scope: TScope); | ||
array<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchemaNonClass<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T>; | ||
array<const Name extends TName, const T extends ImplicitAllowedTypes>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T>; | ||
array<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchemaNonClass<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T, undefined>; | ||
array<const Name extends TName, const T extends ImplicitAllowedTypes>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T, undefined>; | ||
arrayRecursive<const Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array, unknown>, { | ||
[Symbol.iterator](): Iterator<InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>>; | ||
}, false, T>; | ||
readonly boolean: TreeNodeSchema<"com.fluidframework.leaf.boolean", NodeKind.Leaf, boolean, boolean>; | ||
readonly handle: TreeNodeSchema<"com.fluidframework.leaf.handle", NodeKind.Leaf, IFluidHandle<unknown>, IFluidHandle<unknown>>; | ||
}, false, T, undefined>; | ||
readonly boolean: TreeNodeSchemaNonClass<"com.fluidframework.leaf.boolean", NodeKind.Leaf, boolean, boolean, true, unknown, never>; | ||
readonly handle: TreeNodeSchemaNonClass<"com.fluidframework.leaf.handle", NodeKind.Leaf, IFluidHandle<unknown>, IFluidHandle<unknown>, true, unknown, never>; | ||
get identifier(): FieldSchema<FieldKind.Identifier, typeof SchemaFactory.string>; | ||
map<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchemaNonClass<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map>, MapNodeInsertableData<T>, true, T>; | ||
map<Name extends TName, const T extends ImplicitAllowedTypes>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map>, MapNodeInsertableData<T>, true, T>; | ||
map<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchemaNonClass<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map>, MapNodeInsertableData<T>, true, T, undefined>; | ||
map<Name extends TName, const T extends ImplicitAllowedTypes>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map>, MapNodeInsertableData<T>, true, T, undefined>; | ||
mapRecursive<Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map, unknown>, { | ||
@@ -768,5 +768,5 @@ [Symbol.iterator](): Iterator<[ | ||
]>; | ||
}, false, T>; | ||
readonly null: TreeNodeSchema<"com.fluidframework.leaf.null", NodeKind.Leaf, null, null>; | ||
readonly number: TreeNodeSchema<"com.fluidframework.leaf.number", NodeKind.Leaf, number, number>; | ||
}, false, T, undefined>; | ||
readonly null: TreeNodeSchemaNonClass<"com.fluidframework.leaf.null", NodeKind.Leaf, null, null, true, unknown, never>; | ||
readonly number: TreeNodeSchemaNonClass<"com.fluidframework.leaf.number", NodeKind.Leaf, number, number, true, unknown, never>; | ||
object<const Name extends TName, const T extends RestrictiveStringRecord<ImplicitFieldSchema>>(name: Name, fields: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Object, TreeObjectNode<T, ScopedSchemaName<TScope, Name>>, object & InsertableObjectFromSchemaRecord<T>, true, T>; | ||
@@ -780,3 +780,3 @@ objectRecursive<const Name extends TName, const T extends Unenforced<RestrictiveStringRecord<ImplicitFieldSchema>>>(name: Name, t: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Object, TreeObjectNodeUnsafe<T, ScopedSchemaName<TScope, Name>>, object & { readonly [Property in keyof T as FieldHasDefaultUnsafe<T[Property]> extends false ? Property : never]: InsertableTreeFieldFromImplicitFieldUnsafe<T[Property], UnionToIntersection_2<T[Property]>>; } & { readonly [Property_1 in keyof T as FieldHasDefaultUnsafe<T[Property_1]> extends true ? Property_1 : never]?: InsertableTreeFieldFromImplicitFieldUnsafe<T[Property_1], UnionToIntersection_2<T[Property_1]>> | undefined; }, false, T>; | ||
readonly scope: TScope; | ||
readonly string: TreeNodeSchema<"com.fluidframework.leaf.string", NodeKind.Leaf, string, string>; | ||
readonly string: TreeNodeSchemaNonClass<"com.fluidframework.leaf.string", NodeKind.Leaf, string, string, true, unknown, never>; | ||
} | ||
@@ -919,12 +919,13 @@ | ||
// @public @sealed | ||
export type TreeNodeSchema<Name extends string = string, Kind extends NodeKind = NodeKind, TNode extends TreeNode | TreeLeafValue = TreeNode | TreeLeafValue, TBuild = never, ImplicitlyConstructable extends boolean = boolean, Info = unknown> = TreeNodeSchemaClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info> | TreeNodeSchemaNonClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info>; | ||
export type TreeNodeSchema<Name extends string = string, Kind extends NodeKind = NodeKind, TNode extends TreeNode | TreeLeafValue = TreeNode | TreeLeafValue, TBuild = never, ImplicitlyConstructable extends boolean = boolean, Info = unknown> = (TNode extends TreeNode ? TreeNodeSchemaClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info> : never) | TreeNodeSchemaNonClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info>; | ||
// @public @sealed | ||
export interface TreeNodeSchemaClass<out Name extends string = string, out Kind extends NodeKind = NodeKind, out TNode extends TreeNode | TreeLeafValue = TreeNode | TreeLeafValue, in TInsertable = never, out ImplicitlyConstructable extends boolean = boolean, out Info = unknown> extends TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info> { | ||
// @sealed | ||
new (data: TInsertable | InternalTreeNode): Unhydrated<TNode>; | ||
} | ||
export type TreeNodeSchemaClass<Name extends string = string, Kind extends NodeKind = NodeKind, TNode extends TreeNode = TreeNode, TInsertable = never, ImplicitlyConstructable extends boolean = boolean, Info = unknown, TConstructorExtra = never> = TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info, TInsertable> & (undefined extends TConstructorExtra ? { | ||
new (data?: TInsertable | InternalTreeNode | TConstructorExtra): Unhydrated<TNode>; | ||
} : { | ||
new (data: TInsertable | InternalTreeNode | TConstructorExtra): Unhydrated<TNode>; | ||
}); | ||
// @public | ||
export interface TreeNodeSchemaClassUnsafe<out Name extends string, out Kind extends NodeKind, out TNode extends Unenforced<TreeNode | TreeLeafValue>, in TInsertable, out ImplicitlyConstructable extends boolean, out Info> extends TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info> { | ||
export interface TreeNodeSchemaClassUnsafe<out Name extends string, out Kind extends NodeKind, out TNode extends Unenforced<TreeNode>, in TInsertable, out ImplicitlyConstructable extends boolean, out Info> extends TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info> { | ||
// @sealed | ||
@@ -935,4 +936,6 @@ new (data: TInsertable | InternalTreeNode): Unhydrated<TNode>; | ||
// @public @sealed | ||
export interface TreeNodeSchemaCore<out Name extends string, out Kind extends NodeKind, out ImplicitlyConstructable extends boolean, out Info = unknown> { | ||
export interface TreeNodeSchemaCore<out Name extends string, out Kind extends NodeKind, out ImplicitlyConstructable extends boolean, out Info = unknown, out TInsertable = never> { | ||
readonly childTypes: ReadonlySet<TreeNodeSchema>; | ||
// @sealed | ||
createFromInsertable(data: TInsertable): Unhydrated<TreeNode | TreeLeafValue>; | ||
readonly identifier: Name; | ||
@@ -946,6 +949,7 @@ readonly implicitlyConstructable: ImplicitlyConstructable; | ||
// @public @sealed | ||
export interface TreeNodeSchemaNonClass<out Name extends string = string, out Kind extends NodeKind = NodeKind, out TNode extends TreeNode | TreeLeafValue = TreeNode | TreeLeafValue, in TInsertable = never, out ImplicitlyConstructable extends boolean = boolean, out Info = unknown> extends TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info> { | ||
// (undocumented) | ||
create(data: TInsertable): TNode; | ||
} | ||
export type TreeNodeSchemaNonClass<Name extends string = string, Kind extends NodeKind = NodeKind, TNode extends TreeNode | TreeLeafValue = TreeNode | TreeLeafValue, TInsertable = never, ImplicitlyConstructable extends boolean = boolean, Info = unknown, TConstructorExtra = never> = TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info, TInsertable> & (undefined extends TConstructorExtra ? { | ||
create(data?: TInsertable | TConstructorExtra): TNode; | ||
} : { | ||
create(data: TInsertable | TConstructorExtra): TNode; | ||
}); | ||
@@ -1038,5 +1042,5 @@ // @public | ||
get [typeNameSymbol](): TName; | ||
get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind, TreeNode | TreeLeafValue, never, boolean, TInfo>; | ||
get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind, TreeNode, never, boolean, TInfo>; | ||
} | ||
``` |
@@ -590,3 +590,3 @@ ## Public API Report File for "fluid-framework" | ||
// @public | ||
type NodeBuilderData<T extends TreeNodeSchema> = T extends TreeNodeSchema<string, NodeKind, TreeNode | TreeLeafValue, infer TBuild> ? TBuild : never; | ||
type NodeBuilderData<T extends TreeNodeSchemaCore<string, NodeKind, boolean>> = T extends TreeNodeSchemaCore<string, NodeKind, boolean, unknown, infer TBuild> ? TBuild : never; | ||
@@ -716,12 +716,12 @@ // @public | ||
constructor(scope: TScope); | ||
array<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchemaNonClass<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T>; | ||
array<const Name extends TName, const T extends ImplicitAllowedTypes>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T>; | ||
array<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchemaNonClass<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, `Array<${string}>`>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T, undefined>; | ||
array<const Name extends TName, const T extends ImplicitAllowedTypes>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNode<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array>, Iterable<InsertableTreeNodeFromImplicitAllowedTypes<T>>, true, T, undefined>; | ||
arrayRecursive<const Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Array, TreeArrayNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Array, unknown>, { | ||
[Symbol.iterator](): Iterator<InsertableTreeNodeFromImplicitAllowedTypesUnsafe<T>>; | ||
}, false, T>; | ||
readonly boolean: TreeNodeSchema<"com.fluidframework.leaf.boolean", NodeKind.Leaf, boolean, boolean>; | ||
readonly handle: TreeNodeSchema<"com.fluidframework.leaf.handle", NodeKind.Leaf, IFluidHandle<unknown>, IFluidHandle<unknown>>; | ||
}, false, T, undefined>; | ||
readonly boolean: TreeNodeSchemaNonClass<"com.fluidframework.leaf.boolean", NodeKind.Leaf, boolean, boolean, true, unknown, never>; | ||
readonly handle: TreeNodeSchemaNonClass<"com.fluidframework.leaf.handle", NodeKind.Leaf, IFluidHandle<unknown>, IFluidHandle<unknown>, true, unknown, never>; | ||
get identifier(): FieldSchema<FieldKind.Identifier, typeof SchemaFactory.string>; | ||
map<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchemaNonClass<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map>, MapNodeInsertableData<T>, true, T>; | ||
map<Name extends TName, const T extends ImplicitAllowedTypes>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map>, MapNodeInsertableData<T>, true, T>; | ||
map<const T extends TreeNodeSchema | readonly TreeNodeSchema[]>(allowedTypes: T): TreeNodeSchemaNonClass<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, `Map<${string}>`>, NodeKind.Map>, MapNodeInsertableData<T>, true, T, undefined>; | ||
map<Name extends TName, const T extends ImplicitAllowedTypes>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNode<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map>, MapNodeInsertableData<T>, true, T, undefined>; | ||
mapRecursive<Name extends TName, const T extends Unenforced<ImplicitAllowedTypes>>(name: Name, allowedTypes: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Map, TreeMapNodeUnsafe<T> & WithType<ScopedSchemaName<TScope, Name>, NodeKind.Map, unknown>, { | ||
@@ -732,5 +732,5 @@ [Symbol.iterator](): Iterator<[ | ||
]>; | ||
}, false, T>; | ||
readonly null: TreeNodeSchema<"com.fluidframework.leaf.null", NodeKind.Leaf, null, null>; | ||
readonly number: TreeNodeSchema<"com.fluidframework.leaf.number", NodeKind.Leaf, number, number>; | ||
}, false, T, undefined>; | ||
readonly null: TreeNodeSchemaNonClass<"com.fluidframework.leaf.null", NodeKind.Leaf, null, null, true, unknown, never>; | ||
readonly number: TreeNodeSchemaNonClass<"com.fluidframework.leaf.number", NodeKind.Leaf, number, number, true, unknown, never>; | ||
object<const Name extends TName, const T extends RestrictiveStringRecord<ImplicitFieldSchema>>(name: Name, fields: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Object, TreeObjectNode<T, ScopedSchemaName<TScope, Name>>, object & InsertableObjectFromSchemaRecord<T>, true, T>; | ||
@@ -744,3 +744,3 @@ objectRecursive<const Name extends TName, const T extends Unenforced<RestrictiveStringRecord<ImplicitFieldSchema>>>(name: Name, t: T): TreeNodeSchemaClass<ScopedSchemaName<TScope, Name>, NodeKind.Object, TreeObjectNodeUnsafe<T, ScopedSchemaName<TScope, Name>>, object & { readonly [Property in keyof T as FieldHasDefaultUnsafe<T[Property]> extends false ? Property : never]: InsertableTreeFieldFromImplicitFieldUnsafe<T[Property], UnionToIntersection_2<T[Property]>>; } & { readonly [Property_1 in keyof T as FieldHasDefaultUnsafe<T[Property_1]> extends true ? Property_1 : never]?: InsertableTreeFieldFromImplicitFieldUnsafe<T[Property_1], UnionToIntersection_2<T[Property_1]>> | undefined; }, false, T>; | ||
readonly scope: TScope; | ||
readonly string: TreeNodeSchema<"com.fluidframework.leaf.string", NodeKind.Leaf, string, string>; | ||
readonly string: TreeNodeSchemaNonClass<"com.fluidframework.leaf.string", NodeKind.Leaf, string, string, true, unknown, never>; | ||
} | ||
@@ -879,12 +879,13 @@ | ||
// @public @sealed | ||
export type TreeNodeSchema<Name extends string = string, Kind extends NodeKind = NodeKind, TNode extends TreeNode | TreeLeafValue = TreeNode | TreeLeafValue, TBuild = never, ImplicitlyConstructable extends boolean = boolean, Info = unknown> = TreeNodeSchemaClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info> | TreeNodeSchemaNonClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info>; | ||
export type TreeNodeSchema<Name extends string = string, Kind extends NodeKind = NodeKind, TNode extends TreeNode | TreeLeafValue = TreeNode | TreeLeafValue, TBuild = never, ImplicitlyConstructable extends boolean = boolean, Info = unknown> = (TNode extends TreeNode ? TreeNodeSchemaClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info> : never) | TreeNodeSchemaNonClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info>; | ||
// @public @sealed | ||
export interface TreeNodeSchemaClass<out Name extends string = string, out Kind extends NodeKind = NodeKind, out TNode extends TreeNode | TreeLeafValue = TreeNode | TreeLeafValue, in TInsertable = never, out ImplicitlyConstructable extends boolean = boolean, out Info = unknown> extends TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info> { | ||
// @sealed | ||
new (data: TInsertable | InternalTreeNode): Unhydrated<TNode>; | ||
} | ||
export type TreeNodeSchemaClass<Name extends string = string, Kind extends NodeKind = NodeKind, TNode extends TreeNode = TreeNode, TInsertable = never, ImplicitlyConstructable extends boolean = boolean, Info = unknown, TConstructorExtra = never> = TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info, TInsertable> & (undefined extends TConstructorExtra ? { | ||
new (data?: TInsertable | InternalTreeNode | TConstructorExtra): Unhydrated<TNode>; | ||
} : { | ||
new (data: TInsertable | InternalTreeNode | TConstructorExtra): Unhydrated<TNode>; | ||
}); | ||
// @public | ||
export interface TreeNodeSchemaClassUnsafe<out Name extends string, out Kind extends NodeKind, out TNode extends Unenforced<TreeNode | TreeLeafValue>, in TInsertable, out ImplicitlyConstructable extends boolean, out Info> extends TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info> { | ||
export interface TreeNodeSchemaClassUnsafe<out Name extends string, out Kind extends NodeKind, out TNode extends Unenforced<TreeNode>, in TInsertable, out ImplicitlyConstructable extends boolean, out Info> extends TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info> { | ||
// @sealed | ||
@@ -895,4 +896,6 @@ new (data: TInsertable | InternalTreeNode): Unhydrated<TNode>; | ||
// @public @sealed | ||
export interface TreeNodeSchemaCore<out Name extends string, out Kind extends NodeKind, out ImplicitlyConstructable extends boolean, out Info = unknown> { | ||
export interface TreeNodeSchemaCore<out Name extends string, out Kind extends NodeKind, out ImplicitlyConstructable extends boolean, out Info = unknown, out TInsertable = never> { | ||
readonly childTypes: ReadonlySet<TreeNodeSchema>; | ||
// @sealed | ||
createFromInsertable(data: TInsertable): Unhydrated<TreeNode | TreeLeafValue>; | ||
readonly identifier: Name; | ||
@@ -906,6 +909,7 @@ readonly implicitlyConstructable: ImplicitlyConstructable; | ||
// @public @sealed | ||
export interface TreeNodeSchemaNonClass<out Name extends string = string, out Kind extends NodeKind = NodeKind, out TNode extends TreeNode | TreeLeafValue = TreeNode | TreeLeafValue, in TInsertable = never, out ImplicitlyConstructable extends boolean = boolean, out Info = unknown> extends TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info> { | ||
// (undocumented) | ||
create(data: TInsertable): TNode; | ||
} | ||
export type TreeNodeSchemaNonClass<Name extends string = string, Kind extends NodeKind = NodeKind, TNode extends TreeNode | TreeLeafValue = TreeNode | TreeLeafValue, TInsertable = never, ImplicitlyConstructable extends boolean = boolean, Info = unknown, TConstructorExtra = never> = TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info, TInsertable> & (undefined extends TConstructorExtra ? { | ||
create(data?: TInsertable | TConstructorExtra): TNode; | ||
} : { | ||
create(data: TInsertable | TConstructorExtra): TNode; | ||
}); | ||
@@ -998,5 +1002,5 @@ // @public | ||
get [typeNameSymbol](): TName; | ||
get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind, TreeNode | TreeLeafValue, never, boolean, TInfo>; | ||
get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind, TreeNode, never, boolean, TInfo>; | ||
} | ||
``` |
@@ -141,5 +141,9 @@ /*! | ||
// @alpha APIs | ||
BranchableTree, | ||
ConciseTree, | ||
EncodeOptions, | ||
FactoryContent, | ||
FactoryContentObject, | ||
FixRecursiveArraySchema, | ||
FluidClientVersion, | ||
ForestOptions, | ||
@@ -168,3 +172,6 @@ ForestType, | ||
JsonValidator, | ||
ParseOptions, | ||
PopUnion, | ||
ReadSchema, | ||
ReadableField, | ||
SchemaValidationFunction, | ||
@@ -174,3 +181,5 @@ SharedTreeFormatOptions, | ||
SharedTreeOptions, | ||
TreeAlpha, | ||
TreeBranch, | ||
TreeBranchEvents, | ||
TreeBranchFork, | ||
@@ -181,3 +190,7 @@ TreeCompressionStrategy, | ||
UnsafeUnknownSchema, | ||
VerboseTree, | ||
VerboseTreeNode, | ||
ViewContent, | ||
adaptEnum, | ||
asTreeViewAlpha, | ||
comparePersistedSchema, | ||
@@ -189,2 +202,4 @@ configuredSharedTree, | ||
getJsonSchema, | ||
independentInitializedView, | ||
independentView, | ||
noopValidator, | ||
@@ -191,0 +206,0 @@ singletonSchema, |
@@ -141,5 +141,9 @@ /*! | ||
// @alpha APIs | ||
BranchableTree, | ||
ConciseTree, | ||
EncodeOptions, | ||
FactoryContent, | ||
FactoryContentObject, | ||
FixRecursiveArraySchema, | ||
FluidClientVersion, | ||
ForestOptions, | ||
@@ -168,3 +172,6 @@ ForestType, | ||
JsonValidator, | ||
ParseOptions, | ||
PopUnion, | ||
ReadSchema, | ||
ReadableField, | ||
SchemaValidationFunction, | ||
@@ -174,3 +181,5 @@ SharedTreeFormatOptions, | ||
SharedTreeOptions, | ||
TreeAlpha, | ||
TreeBranch, | ||
TreeBranchEvents, | ||
TreeBranchFork, | ||
@@ -181,3 +190,7 @@ TreeCompressionStrategy, | ||
UnsafeUnknownSchema, | ||
VerboseTree, | ||
VerboseTreeNode, | ||
ViewContent, | ||
adaptEnum, | ||
asTreeViewAlpha, | ||
comparePersistedSchema, | ||
@@ -189,2 +202,4 @@ configuredSharedTree, | ||
getJsonSchema, | ||
independentInitializedView, | ||
independentView, | ||
noopValidator, | ||
@@ -191,0 +206,0 @@ singletonSchema, |
{ | ||
"name": "fluid-framework", | ||
"version": "2.5.0-302463", | ||
"version": "2.5.0", | ||
"description": "The main entry point into Fluid Framework public packages", | ||
@@ -60,12 +60,12 @@ "homepage": "https://fluidframework.com", | ||
"dependencies": { | ||
"@fluidframework/container-definitions": "2.5.0-302463", | ||
"@fluidframework/container-loader": "2.5.0-302463", | ||
"@fluidframework/core-interfaces": "2.5.0-302463", | ||
"@fluidframework/driver-definitions": "2.5.0-302463", | ||
"@fluidframework/fluid-static": "2.5.0-302463", | ||
"@fluidframework/map": "2.5.0-302463", | ||
"@fluidframework/runtime-utils": "2.5.0-302463", | ||
"@fluidframework/sequence": "2.5.0-302463", | ||
"@fluidframework/shared-object-base": "2.5.0-302463", | ||
"@fluidframework/tree": "2.5.0-302463" | ||
"@fluidframework/container-definitions": "~2.5.0", | ||
"@fluidframework/container-loader": "~2.5.0", | ||
"@fluidframework/core-interfaces": "~2.5.0", | ||
"@fluidframework/driver-definitions": "~2.5.0", | ||
"@fluidframework/fluid-static": "~2.5.0", | ||
"@fluidframework/map": "~2.5.0", | ||
"@fluidframework/runtime-utils": "~2.5.0", | ||
"@fluidframework/sequence": "~2.5.0", | ||
"@fluidframework/shared-object-base": "~2.5.0", | ||
"@fluidframework/tree": "~2.5.0" | ||
}, | ||
@@ -72,0 +72,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
451605
1833
0
+ Added@fluid-internal/client-utils@2.5.0(transitive)
+ Added@fluidframework/aqueduct@2.5.0(transitive)
+ Added@fluidframework/container-definitions@2.5.0(transitive)
+ Added@fluidframework/container-loader@2.5.0(transitive)
+ Added@fluidframework/container-runtime@2.5.0(transitive)
+ Added@fluidframework/container-runtime-definitions@2.5.0(transitive)
+ Added@fluidframework/core-interfaces@2.5.0(transitive)
+ Added@fluidframework/core-utils@2.5.0(transitive)
+ Added@fluidframework/datastore@2.5.0(transitive)
+ Added@fluidframework/datastore-definitions@2.5.0(transitive)
+ Added@fluidframework/driver-definitions@2.5.0(transitive)
+ Added@fluidframework/driver-utils@2.5.0(transitive)
+ Added@fluidframework/fluid-static@2.5.0(transitive)
+ Added@fluidframework/id-compressor@2.5.0(transitive)
+ Added@fluidframework/map@2.5.0(transitive)
+ Added@fluidframework/merge-tree@2.5.0(transitive)
+ Added@fluidframework/request-handler@2.5.0(transitive)
+ Added@fluidframework/runtime-definitions@2.5.0(transitive)
+ Added@fluidframework/runtime-utils@2.5.0(transitive)
+ Added@fluidframework/sequence@2.5.0(transitive)
+ Added@fluidframework/shared-object-base@2.5.0(transitive)
+ Added@fluidframework/synthesize@2.5.0(transitive)
+ Added@fluidframework/telemetry-utils@2.5.0(transitive)
+ Added@fluidframework/tree@2.5.0(transitive)
+ Added@types/ungap__structured-clone@1.2.0(transitive)
- Removed@fluid-internal/client-utils@2.5.0-302463(transitive)
- Removed@fluidframework/aqueduct@2.5.0-302463(transitive)
- Removed@fluidframework/container-definitions@2.5.0-302463(transitive)
- Removed@fluidframework/container-loader@2.5.0-302463(transitive)
- Removed@fluidframework/container-runtime@2.5.0-302463(transitive)
- Removed@fluidframework/container-runtime-definitions@2.5.0-302463(transitive)
- Removed@fluidframework/core-interfaces@2.5.0-302463(transitive)
- Removed@fluidframework/core-utils@2.5.0-302463(transitive)
- Removed@fluidframework/datastore@2.5.0-302463(transitive)
- Removed@fluidframework/datastore-definitions@2.5.0-302463(transitive)
- Removed@fluidframework/driver-definitions@2.5.0-302463(transitive)
- Removed@fluidframework/driver-utils@2.5.0-302463(transitive)
- Removed@fluidframework/fluid-static@2.5.0-302463(transitive)
- Removed@fluidframework/id-compressor@2.5.0-302463(transitive)
- Removed@fluidframework/map@2.5.0-302463(transitive)
- Removed@fluidframework/merge-tree@2.5.0-302463(transitive)
- Removed@fluidframework/request-handler@2.5.0-302463(transitive)
- Removed@fluidframework/runtime-definitions@2.5.0-302463(transitive)
- Removed@fluidframework/runtime-utils@2.5.0-302463(transitive)
- Removed@fluidframework/sequence@2.5.0-302463(transitive)
- Removed@fluidframework/shared-object-base@2.5.0-302463(transitive)
- Removed@fluidframework/synthesize@2.5.0-302463(transitive)
- Removed@fluidframework/telemetry-utils@2.5.0-302463(transitive)
- Removed@fluidframework/tree@2.5.0-302463(transitive)
Updated@fluidframework/map@~2.5.0
Updated@fluidframework/tree@~2.5.0