From 9eca00e510f8fb3d1563a230516dc47152196a96 Mon Sep 17 00:00:00 2001 From: Jenn Date: Tue, 5 Nov 2024 19:26:09 +0000 Subject: [PATCH] format and build --- .../api-report/fluid-framework.alpha.api.md | 7 ++++--- .../fluid-framework.legacy.alpha.api.md | 2 -- .../azure-client/src/test/tree.spec.ts | 16 ++++++++++++---- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/packages/framework/fluid-framework/api-report/fluid-framework.alpha.api.md b/packages/framework/fluid-framework/api-report/fluid-framework.alpha.api.md index e76ae59b47b6..75f9bc337440 100644 --- a/packages/framework/fluid-framework/api-report/fluid-framework.alpha.api.md +++ b/packages/framework/fluid-framework/api-report/fluid-framework.alpha.api.md @@ -1100,6 +1100,7 @@ export interface TreeBranch extends IDisposable { // @alpha @sealed export interface TreeBranchEvents { + changed(data: CommitMetadata, getRevertible?: RevertibleFactory): void; commitApplied(data: CommitMetadata, getRevertible?: RevertibleFactory): void; schemaChanged(): void; } @@ -1248,7 +1249,9 @@ export interface TreeView extends ID } // @alpha @sealed -export interface TreeViewAlpha extends Omit>, "root" | "initialize">, Omit { +export interface TreeViewAlpha extends Omit>, "root" | "initialize">, TreeBranch { + // (undocumented) + readonly events: Listenable; // (undocumented) fork(): ReturnType & TreeViewAlpha; // (undocumented) @@ -1270,8 +1273,6 @@ export class TreeViewConfiguration { const { container } = await client.createContainer(schema, "2"); await container.attach(); - const view = asTreeViewAlpha(container.initialObjects.tree1.viewWith( - new TreeViewConfiguration({ schema: User, enableSchemaValidation: true }), - )); + const view = asTreeViewAlpha( + container.initialObjects.tree1.viewWith( + new TreeViewConfiguration({ schema: User, enableSchemaValidation: true }), + ), + ); view.initialize( new User({