Skip to main content

ITreeEntry TypeAlias

A tree entry wraps a path with a type of node.

This API is provided as an alpha preview and may change without notice.

To use, import via @fluidframework/protocol-definitions/alpha.

For more information about our API support guarantees, see here.

Signature

export type ITreeEntry = {
path: string;
mode: FileMode;
} & ({
type: TreeEntry.Blob;
value: IBlob;
} | {
type: TreeEntry.Tree;
value: ITree;
} | {
type: TreeEntry.Attachment;
value: IAttachment;
});