Skip to content

Commit

Permalink
(tree): remove internal tree types from public export (#21330)
Browse files Browse the repository at this point in the history
Reference for list of API Issues:
https://github.com/microsoft/FluidFramework/pull/19724/files

Some of the tree types in the current public export involve type
manipulation which shouldn't be exposed. These types are mainly used by
other exported APIs, so they are now exported from an internal types
module instead.
  • Loading branch information
zhenmichael authored Jun 11, 2024
1 parent 18b9a5c commit 3d83ec9
Show file tree
Hide file tree
Showing 17 changed files with 180 additions and 71 deletions.
29 changes: 22 additions & 7 deletions packages/dds/tree/api-report/tree.alpha.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { TSchema } from '@sinclair/typebox';
export type AllowedTypes = readonly LazyItem<TreeNodeSchema>[];

// @public
export type ApplyKind<T, Kind extends FieldKind, DefaultsAreOptional extends boolean> = {
type ApplyKind<T, Kind extends FieldKind, DefaultsAreOptional extends boolean> = {
[FieldKind.Required]: T;
[FieldKind.Optional]: T | undefined;
[FieldKind.Identifier]: DefaultsAreOptional extends true ? T | undefined : T;
Expand All @@ -44,7 +44,7 @@ export interface DefaultProvider extends ErasedType<"@fluidframework/tree.FieldP
}

// @public
export type ExtractItemType<Item extends LazyItem> = Item extends () => infer Result ? Result : Item;
type ExtractItemType<Item extends LazyItem> = Item extends () => infer Result ? Result : Item;

// @public
export enum FieldKind {
Expand Down Expand Up @@ -79,7 +79,7 @@ export interface FieldSchemaUnsafe<out Kind extends FieldKind, out Types extends
export type FlexList<Item = unknown> = readonly LazyItem<Item>[];

// @public
export type FlexListToUnion<TList extends FlexList> = ExtractItemType<TList[number]>;
type FlexListToUnion<TList extends FlexList> = ExtractItemType<TList[number]>;

// @public
export type ImplicitAllowedTypes = AllowedTypes | TreeNodeSchema;
Expand All @@ -104,10 +104,10 @@ export type InsertableTreeFieldFromImplicitField<TSchema extends ImplicitFieldSc
export type InsertableTreeFieldFromImplicitFieldUnsafe<TSchema extends Unenforced<ImplicitFieldSchema>> = TSchema extends FieldSchemaUnsafe<infer Kind, infer Types> ? ApplyKind<InsertableTreeNodeFromImplicitAllowedTypesUnsafe<Types>, Kind, true> : InsertableTreeNodeFromImplicitAllowedTypesUnsafe<TSchema>;

// @public
export type InsertableTreeNodeFromImplicitAllowedTypes<TSchema extends ImplicitAllowedTypes = TreeNodeSchema> = TSchema extends TreeNodeSchema ? InsertableTypedNode<TSchema> : TSchema extends AllowedTypes ? InsertableTypedNode<FlexListToUnion<TSchema>> : never;
export type InsertableTreeNodeFromImplicitAllowedTypes<TSchema extends ImplicitAllowedTypes = TreeNodeSchema> = TSchema extends TreeNodeSchema ? InsertableTypedNode<TSchema> : TSchema extends AllowedTypes ? InsertableTypedNode<InternalFlexListTypes.FlexListToUnion<TSchema>> : never;

// @public
export type InsertableTreeNodeFromImplicitAllowedTypesUnsafe<TSchema extends Unenforced<ImplicitAllowedTypes>> = TSchema extends AllowedTypes ? InsertableTypedNodeUnsafe<FlexListToUnion<TSchema>> : InsertableTypedNodeUnsafe<TSchema>;
export type InsertableTreeNodeFromImplicitAllowedTypesUnsafe<TSchema extends Unenforced<ImplicitAllowedTypes>> = TSchema extends AllowedTypes ? InsertableTypedNodeUnsafe<InternalFlexListTypes.FlexListToUnion<TSchema>> : InsertableTypedNodeUnsafe<TSchema>;

// @public
export type InsertableTypedNode<T extends TreeNodeSchema> = (T extends {
Expand All @@ -119,6 +119,21 @@ export type InsertableTypedNodeUnsafe<T extends Unenforced<TreeNodeSchema>> = Un
implicitlyConstructable: true;
} ? NodeBuilderDataUnsafe<T> : never);

declare namespace InternalFlexListTypes {
export {
FlexListToUnion,
ExtractItemType
}
}
export { InternalFlexListTypes }

declare namespace InternalSimpleTreeTypes {
export {
ApplyKind
}
}
export { InternalSimpleTreeTypes }

// @public
export interface InternalTreeNode extends ErasedType<"@fluidframework/tree.InternalTreeNode"> {
}
Expand Down Expand Up @@ -393,10 +408,10 @@ export interface TreeNodeApi {
}

// @public
export type TreeNodeFromImplicitAllowedTypes<TSchema extends ImplicitAllowedTypes = TreeNodeSchema> = TSchema extends TreeNodeSchema ? NodeFromSchema<TSchema> : TSchema extends AllowedTypes ? NodeFromSchema<FlexListToUnion<TSchema>> : unknown;
export type TreeNodeFromImplicitAllowedTypes<TSchema extends ImplicitAllowedTypes = TreeNodeSchema> = TSchema extends TreeNodeSchema ? NodeFromSchema<TSchema> : TSchema extends AllowedTypes ? NodeFromSchema<InternalFlexListTypes.FlexListToUnion<TSchema>> : unknown;

// @public
export type TreeNodeFromImplicitAllowedTypesUnsafe<TSchema extends Unenforced<ImplicitAllowedTypes>> = TSchema extends ImplicitAllowedTypes ? TreeNodeFromImplicitAllowedTypes<TSchema> : TSchema extends TreeNodeSchema ? NodeFromSchema<TSchema> : TSchema extends AllowedTypes ? NodeFromSchema<FlexListToUnion<TSchema>> : unknown;
export type TreeNodeFromImplicitAllowedTypesUnsafe<TSchema extends Unenforced<ImplicitAllowedTypes>> = TSchema extends ImplicitAllowedTypes ? TreeNodeFromImplicitAllowedTypes<TSchema> : TSchema extends TreeNodeSchema ? NodeFromSchema<TSchema> : TSchema extends AllowedTypes ? NodeFromSchema<InternalFlexListTypes.FlexListToUnion<TSchema>> : unknown;

// @public
export type TreeNodeSchema<Name extends string = string, Kind extends NodeKind = NodeKind, TNode = unknown, TBuild = never, ImplicitlyConstructable extends boolean = boolean, Info = unknown> = TreeNodeSchemaClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info> | TreeNodeSchemaNonClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info>;
Expand Down
29 changes: 22 additions & 7 deletions packages/dds/tree/api-report/tree.beta.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { TSchema } from '@sinclair/typebox';
export type AllowedTypes = readonly LazyItem<TreeNodeSchema>[];

// @public
export type ApplyKind<T, Kind extends FieldKind, DefaultsAreOptional extends boolean> = {
type ApplyKind<T, Kind extends FieldKind, DefaultsAreOptional extends boolean> = {
[FieldKind.Required]: T;
[FieldKind.Optional]: T | undefined;
[FieldKind.Identifier]: DefaultsAreOptional extends true ? T | undefined : T;
Expand All @@ -44,7 +44,7 @@ export interface DefaultProvider extends ErasedType<"@fluidframework/tree.FieldP
}

// @public
export type ExtractItemType<Item extends LazyItem> = Item extends () => infer Result ? Result : Item;
type ExtractItemType<Item extends LazyItem> = Item extends () => infer Result ? Result : Item;

// @public
export enum FieldKind {
Expand Down Expand Up @@ -79,7 +79,7 @@ export interface FieldSchemaUnsafe<out Kind extends FieldKind, out Types extends
export type FlexList<Item = unknown> = readonly LazyItem<Item>[];

// @public
export type FlexListToUnion<TList extends FlexList> = ExtractItemType<TList[number]>;
type FlexListToUnion<TList extends FlexList> = ExtractItemType<TList[number]>;

// @public
export type ImplicitAllowedTypes = AllowedTypes | TreeNodeSchema;
Expand All @@ -104,10 +104,10 @@ export type InsertableTreeFieldFromImplicitField<TSchema extends ImplicitFieldSc
export type InsertableTreeFieldFromImplicitFieldUnsafe<TSchema extends Unenforced<ImplicitFieldSchema>> = TSchema extends FieldSchemaUnsafe<infer Kind, infer Types> ? ApplyKind<InsertableTreeNodeFromImplicitAllowedTypesUnsafe<Types>, Kind, true> : InsertableTreeNodeFromImplicitAllowedTypesUnsafe<TSchema>;

// @public
export type InsertableTreeNodeFromImplicitAllowedTypes<TSchema extends ImplicitAllowedTypes = TreeNodeSchema> = TSchema extends TreeNodeSchema ? InsertableTypedNode<TSchema> : TSchema extends AllowedTypes ? InsertableTypedNode<FlexListToUnion<TSchema>> : never;
export type InsertableTreeNodeFromImplicitAllowedTypes<TSchema extends ImplicitAllowedTypes = TreeNodeSchema> = TSchema extends TreeNodeSchema ? InsertableTypedNode<TSchema> : TSchema extends AllowedTypes ? InsertableTypedNode<InternalFlexListTypes.FlexListToUnion<TSchema>> : never;

// @public
export type InsertableTreeNodeFromImplicitAllowedTypesUnsafe<TSchema extends Unenforced<ImplicitAllowedTypes>> = TSchema extends AllowedTypes ? InsertableTypedNodeUnsafe<FlexListToUnion<TSchema>> : InsertableTypedNodeUnsafe<TSchema>;
export type InsertableTreeNodeFromImplicitAllowedTypesUnsafe<TSchema extends Unenforced<ImplicitAllowedTypes>> = TSchema extends AllowedTypes ? InsertableTypedNodeUnsafe<InternalFlexListTypes.FlexListToUnion<TSchema>> : InsertableTypedNodeUnsafe<TSchema>;

// @public
export type InsertableTypedNode<T extends TreeNodeSchema> = (T extends {
Expand All @@ -119,6 +119,21 @@ export type InsertableTypedNodeUnsafe<T extends Unenforced<TreeNodeSchema>> = Un
implicitlyConstructable: true;
} ? NodeBuilderDataUnsafe<T> : never);

declare namespace InternalFlexListTypes {
export {
FlexListToUnion,
ExtractItemType
}
}
export { InternalFlexListTypes }

declare namespace InternalSimpleTreeTypes {
export {
ApplyKind
}
}
export { InternalSimpleTreeTypes }

// @public
export interface InternalTreeNode extends ErasedType<"@fluidframework/tree.InternalTreeNode"> {
}
Expand Down Expand Up @@ -390,10 +405,10 @@ export interface TreeNodeApi {
}

// @public
export type TreeNodeFromImplicitAllowedTypes<TSchema extends ImplicitAllowedTypes = TreeNodeSchema> = TSchema extends TreeNodeSchema ? NodeFromSchema<TSchema> : TSchema extends AllowedTypes ? NodeFromSchema<FlexListToUnion<TSchema>> : unknown;
export type TreeNodeFromImplicitAllowedTypes<TSchema extends ImplicitAllowedTypes = TreeNodeSchema> = TSchema extends TreeNodeSchema ? NodeFromSchema<TSchema> : TSchema extends AllowedTypes ? NodeFromSchema<InternalFlexListTypes.FlexListToUnion<TSchema>> : unknown;

// @public
export type TreeNodeFromImplicitAllowedTypesUnsafe<TSchema extends Unenforced<ImplicitAllowedTypes>> = TSchema extends ImplicitAllowedTypes ? TreeNodeFromImplicitAllowedTypes<TSchema> : TSchema extends TreeNodeSchema ? NodeFromSchema<TSchema> : TSchema extends AllowedTypes ? NodeFromSchema<FlexListToUnion<TSchema>> : unknown;
export type TreeNodeFromImplicitAllowedTypesUnsafe<TSchema extends Unenforced<ImplicitAllowedTypes>> = TSchema extends ImplicitAllowedTypes ? TreeNodeFromImplicitAllowedTypes<TSchema> : TSchema extends TreeNodeSchema ? NodeFromSchema<TSchema> : TSchema extends AllowedTypes ? NodeFromSchema<InternalFlexListTypes.FlexListToUnion<TSchema>> : unknown;

// @public
export type TreeNodeSchema<Name extends string = string, Kind extends NodeKind = NodeKind, TNode = unknown, TBuild = never, ImplicitlyConstructable extends boolean = boolean, Info = unknown> = TreeNodeSchemaClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info> | TreeNodeSchemaNonClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info>;
Expand Down
29 changes: 22 additions & 7 deletions packages/dds/tree/api-report/tree.public.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { TSchema } from '@sinclair/typebox';
export type AllowedTypes = readonly LazyItem<TreeNodeSchema>[];

// @public
export type ApplyKind<T, Kind extends FieldKind, DefaultsAreOptional extends boolean> = {
type ApplyKind<T, Kind extends FieldKind, DefaultsAreOptional extends boolean> = {
[FieldKind.Required]: T;
[FieldKind.Optional]: T | undefined;
[FieldKind.Identifier]: DefaultsAreOptional extends true ? T | undefined : T;
Expand All @@ -44,7 +44,7 @@ export interface DefaultProvider extends ErasedType<"@fluidframework/tree.FieldP
}

// @public
export type ExtractItemType<Item extends LazyItem> = Item extends () => infer Result ? Result : Item;
type ExtractItemType<Item extends LazyItem> = Item extends () => infer Result ? Result : Item;

// @public
export enum FieldKind {
Expand Down Expand Up @@ -79,7 +79,7 @@ export interface FieldSchemaUnsafe<out Kind extends FieldKind, out Types extends
export type FlexList<Item = unknown> = readonly LazyItem<Item>[];

// @public
export type FlexListToUnion<TList extends FlexList> = ExtractItemType<TList[number]>;
type FlexListToUnion<TList extends FlexList> = ExtractItemType<TList[number]>;

// @public
export type ImplicitAllowedTypes = AllowedTypes | TreeNodeSchema;
Expand All @@ -104,10 +104,10 @@ export type InsertableTreeFieldFromImplicitField<TSchema extends ImplicitFieldSc
export type InsertableTreeFieldFromImplicitFieldUnsafe<TSchema extends Unenforced<ImplicitFieldSchema>> = TSchema extends FieldSchemaUnsafe<infer Kind, infer Types> ? ApplyKind<InsertableTreeNodeFromImplicitAllowedTypesUnsafe<Types>, Kind, true> : InsertableTreeNodeFromImplicitAllowedTypesUnsafe<TSchema>;

// @public
export type InsertableTreeNodeFromImplicitAllowedTypes<TSchema extends ImplicitAllowedTypes = TreeNodeSchema> = TSchema extends TreeNodeSchema ? InsertableTypedNode<TSchema> : TSchema extends AllowedTypes ? InsertableTypedNode<FlexListToUnion<TSchema>> : never;
export type InsertableTreeNodeFromImplicitAllowedTypes<TSchema extends ImplicitAllowedTypes = TreeNodeSchema> = TSchema extends TreeNodeSchema ? InsertableTypedNode<TSchema> : TSchema extends AllowedTypes ? InsertableTypedNode<InternalFlexListTypes.FlexListToUnion<TSchema>> : never;

// @public
export type InsertableTreeNodeFromImplicitAllowedTypesUnsafe<TSchema extends Unenforced<ImplicitAllowedTypes>> = TSchema extends AllowedTypes ? InsertableTypedNodeUnsafe<FlexListToUnion<TSchema>> : InsertableTypedNodeUnsafe<TSchema>;
export type InsertableTreeNodeFromImplicitAllowedTypesUnsafe<TSchema extends Unenforced<ImplicitAllowedTypes>> = TSchema extends AllowedTypes ? InsertableTypedNodeUnsafe<InternalFlexListTypes.FlexListToUnion<TSchema>> : InsertableTypedNodeUnsafe<TSchema>;

// @public
export type InsertableTypedNode<T extends TreeNodeSchema> = (T extends {
Expand All @@ -119,6 +119,21 @@ export type InsertableTypedNodeUnsafe<T extends Unenforced<TreeNodeSchema>> = Un
implicitlyConstructable: true;
} ? NodeBuilderDataUnsafe<T> : never);

declare namespace InternalFlexListTypes {
export {
FlexListToUnion,
ExtractItemType
}
}
export { InternalFlexListTypes }

declare namespace InternalSimpleTreeTypes {
export {
ApplyKind
}
}
export { InternalSimpleTreeTypes }

// @public
export interface InternalTreeNode extends ErasedType<"@fluidframework/tree.InternalTreeNode"> {
}
Expand Down Expand Up @@ -390,10 +405,10 @@ export interface TreeNodeApi {
}

// @public
export type TreeNodeFromImplicitAllowedTypes<TSchema extends ImplicitAllowedTypes = TreeNodeSchema> = TSchema extends TreeNodeSchema ? NodeFromSchema<TSchema> : TSchema extends AllowedTypes ? NodeFromSchema<FlexListToUnion<TSchema>> : unknown;
export type TreeNodeFromImplicitAllowedTypes<TSchema extends ImplicitAllowedTypes = TreeNodeSchema> = TSchema extends TreeNodeSchema ? NodeFromSchema<TSchema> : TSchema extends AllowedTypes ? NodeFromSchema<InternalFlexListTypes.FlexListToUnion<TSchema>> : unknown;

// @public
export type TreeNodeFromImplicitAllowedTypesUnsafe<TSchema extends Unenforced<ImplicitAllowedTypes>> = TSchema extends ImplicitAllowedTypes ? TreeNodeFromImplicitAllowedTypes<TSchema> : TSchema extends TreeNodeSchema ? NodeFromSchema<TSchema> : TSchema extends AllowedTypes ? NodeFromSchema<FlexListToUnion<TSchema>> : unknown;
export type TreeNodeFromImplicitAllowedTypesUnsafe<TSchema extends Unenforced<ImplicitAllowedTypes>> = TSchema extends ImplicitAllowedTypes ? TreeNodeFromImplicitAllowedTypes<TSchema> : TSchema extends TreeNodeSchema ? NodeFromSchema<TSchema> : TSchema extends AllowedTypes ? NodeFromSchema<InternalFlexListTypes.FlexListToUnion<TSchema>> : unknown;

// @public
export type TreeNodeSchema<Name extends string = string, Kind extends NodeKind = NodeKind, TNode = unknown, TBuild = never, ImplicitlyConstructable extends boolean = boolean, Info = unknown> = TreeNodeSchemaClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info> | TreeNodeSchemaNonClass<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import {
FlexFieldNodeSchema,
FlexFieldSchema,
FlexList,
FlexListToUnion,
FlexMapNodeSchema,
FlexObjectNodeFields,
FlexObjectNodeSchema,
FlexTreeNodeSchema,
InternalFlexListTypes,
LazyItem,
LeafNodeSchema,
} from "../typed-schema/index.js";
Expand Down Expand Up @@ -1026,7 +1026,7 @@ export type FlexTreeTypedFieldInner<
*/
export type FlexTreeTypedNodeUnion<T extends FlexAllowedTypes> =
T extends FlexList<FlexTreeNodeSchema>
? FlexTreeTypedNode<Assume<FlexListToUnion<T>, FlexTreeNodeSchema>>
? FlexTreeTypedNode<Assume<InternalFlexListTypes.FlexListToUnion<T>, FlexTreeNodeSchema>>
: FlexTreeNode;

/**
Expand Down
3 changes: 1 addition & 2 deletions packages/dds/tree/src/feature-libraries/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,14 @@ export {
FlexMapFieldSchema,
SchemaCollection,
TreeNodeSchemaBase,
FlexListToUnion,
LazyItem,
InternalFlexListTypes,
isLazy,
NormalizeObjectNodeFields,
NormalizeField as NormalizeFieldSchema,
FlexObjectNodeFields,
intoStoredSchema,
intoStoredSchemaCollection,
ExtractItemType,
NormalizeLazyItem,
FlexList,
} from "./typed-schema/index.js";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import {
FlexAllowedTypes,
FlexFieldNodeSchema,
FlexFieldSchema,
FlexListToUnion,
FlexMapNodeSchema,
FlexObjectNodeFields,
FlexObjectNodeSchema,
FlexTreeNodeSchema,
InternalFlexListTypes,
LazyItem,
LeafNodeSchema,
} from "../typed-schema/index.js";
Expand Down Expand Up @@ -102,7 +102,7 @@ export type ApplyMultiplicity<TMultiplicity extends Multiplicity, TypedChild> =
*/
export type AllowedTypesToFlexInsertableTree<T extends FlexAllowedTypes> = [
T extends readonly LazyItem<FlexTreeNodeSchema>[]
? InsertableFlexNode<Assume<FlexListToUnion<T>, FlexTreeNodeSchema>>
? InsertableFlexNode<Assume<InternalFlexListTypes.FlexListToUnion<T>, FlexTreeNodeSchema>>
: ContextuallyTypedNodeData,
][_InlineTrick];

Expand Down
13 changes: 4 additions & 9 deletions packages/dds/tree/src/feature-libraries/typed-schema/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ export {
schemaLintDefault,
} from "./schemaCollection.js";

export {
FlexList,
markEager,
FlexListToUnion,
LazyItem,
isLazy,
ExtractItemType,
NormalizeLazyItem,
} from "./flexList.js";
export { FlexList, markEager, LazyItem, isLazy, NormalizeLazyItem } from "./flexList.js";

import * as InternalFlexListTypes from "./internalTypes.js";
export { InternalFlexListTypes };
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/

// Used by public types, but not part of the desired API surface

export { FlexListToUnion, ExtractItemType } from "./flexList.js";
5 changes: 2 additions & 3 deletions packages/dds/tree/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ export {
NormalizeFieldSchema,
FlexObjectNodeFields,
FlexMapFieldSchema,
ExtractItemType,
LazyItem,
PropertyNameFromFieldKey,
ReservedObjectNodeFieldPropertyNames,
Expand Down Expand Up @@ -290,13 +289,13 @@ export {
type,
WithType,
AllowedTypes,
ApplyKind,
FieldKind,
FieldSchema,
ImplicitAllowedTypes,
InsertableObjectFromSchemaRecord,
InsertableTreeFieldFromImplicitField,
InsertableTypedNode,
InternalSimpleTreeTypes,
NodeBuilderData,
NodeKind,
ObjectFromSchemaRecord,
Expand Down Expand Up @@ -384,7 +383,7 @@ export {
UnbrandedName,
EmptyObject,
FlexList,
FlexListToUnion,
InternalFlexListTypes,

// These field kind types really only need to show up via FieldKinds.name, and not as top level names in the package.
// These names also are collision prone.
Expand Down
3 changes: 2 additions & 1 deletion packages/dds/tree/src/simple-tree/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export {
type,
WithType,
AllowedTypes,
ApplyKind,
FieldKind,
FieldSchema,
InsertableTreeFieldFromImplicitField,
Expand All @@ -37,6 +36,8 @@ export {
type FieldProps,
normalizeFieldSchema,
} from "./schemaTypes.js";
import * as InternalSimpleTreeTypes from "./internalTypes.js";
export { InternalSimpleTreeTypes };
export { SchemaFactory, type ScopedSchemaName } from "./schemaFactory.js";
export { getFlexNode } from "./proxyBinding.js";
export { treeNodeApi, TreeNodeApi, TreeChangeEvents } from "./treeNodeApi.js";
Expand Down
8 changes: 8 additions & 0 deletions packages/dds/tree/src/simple-tree/internalTypes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/

// Used by public types, but not part of the desired API surface

export { ApplyKind } from "./schemaTypes.js";
Loading

0 comments on commit 3d83ec9

Please sign in to comment.