@self.id/image-utils
Version:
Image utilities for Self.ID profiles
11 lines (10 loc) • 309 B
TypeScript
/** @internal */
export declare type LinkData = {
Name: string;
Hash: string;
Size: number;
};
/**
* Upload the `blob` file to the given IPFS server `url`, using the optionally given `fileName`.
*/
export declare function uploadFile(url: string, blob: Blob, fileName?: string): Promise<string>;