XetBlob is a blob implementation that fetches data directly from the Xet storage
Blob
↳ __internal_XetBlob
• new __internal_XetBlob(params
): __internal_XetBlob
Name | Type |
---|---|
params | XetBlobCreateOptions |
Blob.constructor
• Private
Optional
#reconstructionInfoPromise: Promise
\<ReconstructionInfo
>
• Optional
accessToken: string
• end: number
= 0
• fetch: (input
: URL
| RequestInfo
, init?
: RequestInit
) => Promise
\<Response
>(input
: string
| URL
| Request
, init?
: RequestInit
) => Promise
\<Response
>
▸ (input
, init?
): Promise
\<Response
>
Name | Type |
---|---|
input | URL | RequestInfo |
init? | RequestInit |
Promise
\<Response
>
▸ (input
, init?
): Promise
\<Response
>
Name | Type |
---|---|
input | string | URL | Request |
init? | RequestInit |
Promise
\<Response
>
• hash: string
• hubUrl: string
• reconstructionInfo: undefined
| ReconstructionInfo
• repoId: RepoId
• start: number
= 0
• Readonly
type: string
Blob.type
doc-internal/node_modules/.pnpm/typescript@5.4.2/node_modules/typescript/lib/lib.dom.d.ts:3120
• get
size(): number
number
Blob.size
▸ #clone(): __internal_XetBlob
▸ #fetch(): Promise
\<ReadableStream
\<Uint8Array
>>
Promise
\<ReadableStream
\<Uint8Array
>>
▸ #loadReconstructionInfo(): Promise
\<ReconstructionInfo
>
Promise
\<ReconstructionInfo
>
▸ arrayBuffer(): Promise
\<ArrayBuffer
>
Promise
\<ArrayBuffer
>
Blob.arrayBuffer
▸ response(): Promise
\<Response
>
Promise
\<Response
>
▸ slice(start?
, end?
): __internal_XetBlob
Name | Type | Default value |
---|---|---|
start | number | 0 |
end | number | undefined |
Blob.slice
▸ stream(): ReadableStream
\<Uint8Array
>
ReadableStream
\<Uint8Array
>
Blob.stream
▸ text(): Promise
\<string
>
Promise
\<string
>
Blob.text