Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/dds/tree/api-report/tree.alpha.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ TSchema
] extends [ImplicitFieldSchema] ? InsertableTreeFieldFromImplicitField<TSchema> : [TSchema] extends [UnsafeUnknownSchema] ? InsertableContent | undefined : never;

// @public @system
type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
export type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
arbitraryKey: "arbitraryValue";
} extends T ? Record<string, never> : never : FlattenKeys<{
readonly [Property in keyof T]?: InsertableTreeFieldFromImplicitField<T[Property & string]>;
Expand Down Expand Up @@ -1063,7 +1063,7 @@ export class SchemaUpgrade {
}

// @public @system
type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;
export type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;

// @alpha @input
export interface SharedTreeFormatOptions {
Expand Down
4 changes: 2 additions & 2 deletions packages/dds/tree/api-report/tree.beta.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ type _InlineTrick = 0;
export type Input<T extends never> = T;

// @public @system
type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
export type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
arbitraryKey: "arbitraryValue";
} extends T ? Record<string, never> : never : FlattenKeys<{
readonly [Property in keyof T]?: InsertableTreeFieldFromImplicitField<T[Property & string]>;
Expand Down Expand Up @@ -559,7 +559,7 @@ export class SchemaUpgrade {
}

// @public @system
type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;
export type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;

// @beta @input
export type SharedTreeOptionsBeta = ForestOptions;
Expand Down
4 changes: 2 additions & 2 deletions packages/dds/tree/api-report/tree.legacy.beta.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ type _InlineTrick = 0;
export type Input<T extends never> = T;

// @public @system
type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
export type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
arbitraryKey: "arbitraryValue";
} extends T ? Record<string, never> : never : FlattenKeys<{
readonly [Property in keyof T]?: InsertableTreeFieldFromImplicitField<T[Property & string]>;
Expand Down Expand Up @@ -562,7 +562,7 @@ export class SchemaUpgrade {
}

// @public @system
type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;
export type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;

// @beta @legacy
export const SharedTree: ISharedObjectKind<ITree> & SharedObjectKind<ITree>;
Expand Down
4 changes: 2 additions & 2 deletions packages/dds/tree/api-report/tree.legacy.public.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ type _InlineTrick = 0;
export type Input<T extends never> = T;

// @public @system
type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
export type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
arbitraryKey: "arbitraryValue";
} extends T ? Record<string, never> : never : FlattenKeys<{
readonly [Property in keyof T]?: InsertableTreeFieldFromImplicitField<T[Property & string]>;
Expand Down Expand Up @@ -356,7 +356,7 @@ export interface SchemaStatics {
}

// @public @system
type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;
export type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;

// @public @sealed @system
export interface SimpleNodeSchemaBase<out TNodeKind extends NodeKind, out TCustomMetadata = unknown> {
Expand Down
4 changes: 2 additions & 2 deletions packages/dds/tree/api-report/tree.public.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ type _InlineTrick = 0;
export type Input<T extends never> = T;

// @public @system
type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
export type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
arbitraryKey: "arbitraryValue";
} extends T ? Record<string, never> : never : FlattenKeys<{
readonly [Property in keyof T]?: InsertableTreeFieldFromImplicitField<T[Property & string]>;
Expand Down Expand Up @@ -356,7 +356,7 @@ export interface SchemaStatics {
}

// @public @system
type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;
export type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;

// @public @sealed @system
export interface SimpleNodeSchemaBase<out TNodeKind extends NodeKind, out TCustomMetadata = unknown> {
Expand Down
2 changes: 2 additions & 0 deletions packages/dds/tree/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export {
type TreeView,
type TreeViewEvents,
SchemaFactory,
type ScopedSchemaName,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both of these are already exported via src/internalTypes.ts

SchemaFactoryBeta,
type SchemaStaticsBeta,
SchemaFactoryAlpha,
Expand Down Expand Up @@ -275,6 +276,7 @@ export {
type MapNodePojoEmulationSchema,
MapNodeSchema,
type ObjectFromSchemaRecord,
type InsertableObjectFromSchemaRecord,
type ValidateRecursiveSchemaTemplate,
type FixRecursiveRecursionLimit,
RecordNodeSchema,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ TSchema
] extends [ImplicitFieldSchema] ? InsertableTreeFieldFromImplicitField<TSchema> : [TSchema] extends [UnsafeUnknownSchema] ? InsertableContent | undefined : never;

// @public @system
type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
export type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
arbitraryKey: "arbitraryValue";
} extends T ? Record<string, never> : never : FlattenKeys<{
readonly [Property in keyof T]?: InsertableTreeFieldFromImplicitField<T[Property & string]>;
Expand Down Expand Up @@ -1433,7 +1433,7 @@ export class SchemaUpgrade {
}

// @public @system
type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;
export type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;

// @public @sealed
export interface SharedObjectKind<out TSharedObject = unknown> extends ErasedType<readonly ["SharedObjectKind", TSharedObject]> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ type _InlineTrick = 0;
export type Input<T extends never> = T;

// @public @system
type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
export type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
arbitraryKey: "arbitraryValue";
} extends T ? Record<string, never> : never : FlattenKeys<{
readonly [Property in keyof T]?: InsertableTreeFieldFromImplicitField<T[Property & string]>;
Expand Down Expand Up @@ -923,7 +923,7 @@ export class SchemaUpgrade {
}

// @public @system
type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;
export type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;

// @public @sealed
export interface SharedObjectKind<out TSharedObject = unknown> extends ErasedType<readonly ["SharedObjectKind", TSharedObject]> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ type _InlineTrick = 0;
export type Input<T extends never> = T;

// @public @system
type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
export type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
arbitraryKey: "arbitraryValue";
} extends T ? Record<string, never> : never : FlattenKeys<{
readonly [Property in keyof T]?: InsertableTreeFieldFromImplicitField<T[Property & string]>;
Expand Down Expand Up @@ -1203,7 +1203,7 @@ export class SchemaUpgrade {
}

// @public @system
type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;
export type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;

// @beta @legacy
export interface SequenceDeltaEvent extends SequenceEvent<MergeTreeDeltaOperationType> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ type _InlineTrick = 0;
export type Input<T extends never> = T;

// @public @system
type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
export type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
arbitraryKey: "arbitraryValue";
} extends T ? Record<string, never> : never : FlattenKeys<{
readonly [Property in keyof T]?: InsertableTreeFieldFromImplicitField<T[Property & string]>;
Expand All @@ -467,6 +467,8 @@ TSchema
// @public
export type InsertableTypedNode<TSchema extends TreeNodeSchema, T = UnionToIntersection<TSchema>> = (T extends TreeNodeSchema<string, NodeKind, TreeNode | TreeLeafValue, never, true> ? NodeBuilderData<T> : never) | (T extends TreeNodeSchema ? Unhydrated<TreeNode extends NodeFromSchema<T> ? never : NodeFromSchema<T>> : never);

export { InteriorSequencePlace }

// @public @sealed
export interface InternalTreeNode extends ErasedType<"@fluidframework/tree.InternalTreeNode"> {
}
Expand Down Expand Up @@ -748,7 +750,9 @@ export interface SchemaStatics {
}

// @public @system
type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;
export type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;

export { SequencePlace }

// @public @sealed
export interface SharedObjectKind<out TSharedObject = unknown> extends ErasedType<readonly ["SharedObjectKind", TSharedObject]> {
Expand All @@ -758,6 +762,8 @@ export interface SharedObjectKind<out TSharedObject = unknown> extends ErasedTyp
// @public
export const SharedTree: SharedObjectKind<ITree>;

export { Side }

// @public @sealed @system
export interface SimpleNodeSchemaBase<out TNodeKind extends NodeKind, out TCustomMetadata = unknown> {
readonly kind: TNodeKind;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ type _InlineTrick = 0;
export type Input<T extends never> = T;

// @public @system
type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
export type InsertableObjectFromSchemaRecord<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
arbitraryKey: "arbitraryValue";
} extends T ? Record<string, never> : never : FlattenKeys<{
readonly [Property in keyof T]?: InsertableTreeFieldFromImplicitField<T[Property & string]>;
Expand Down Expand Up @@ -714,7 +714,7 @@ export interface SchemaStatics {
}

// @public @system
type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;
export type ScopedSchemaName<TScope extends string | undefined, TName extends number | string> = TScope extends undefined ? `${TName}` : `${TScope}.${TName}`;

// @public @sealed
export interface SharedObjectKind<out TSharedObject = unknown> extends ErasedType<readonly ["SharedObjectKind", TSharedObject]> {
Expand Down
Loading