Interface ResourceFactory
Methods
fromBlob
- fromBlob(args: { url: `${string}:${string}`; blob: Blob; config?: GlobalConfig }): Promise<Resource>
-
Parameters
-
args: { url: `${string}:${string}`; blob: Blob; config?: GlobalConfig }
-
url: `${string}:${string}`
-
blob: Blob
-
Returns Promise<Resource>
Each Resource subclass implements a static method
fromBlob
to instantiate it from a{ blob, url }
pair.