import { IDocumentAttributes , ISnapshotTree } from "@fluidframework/protocol-definitions" ; /** Reads a blob from storage and parses it from JSON. */ export type ReadAndParseBlob = < T > ( id : string ) => Promise < T > ; param tree param readAndParseBlob export async function seqFromTree ( tree , readAndParseBlob ) { const attributesHash = tree . trees [ ".protocol" ] . blobs . attributes ; const attrib = await readAndParseBlob < IDocumentAttributes > ( attributesHash ) ; return attrib . sequenceNumber ; }