Type Alias: UploadResult
ts
type UploadResult =
| string
| {
height?: number;
src: string;
width?: number;
};What an upload resolves to: the stored file's URL, optionally with its size.
Union Members
string
Type Literal
ts
{
height?: number;
src: string;
width?: number;
}height?
ts
height?: number;Height in pixels. Default: measured from the file, if ready in time.
src
ts
src: string;URL of the stored file.
width?
ts
width?: number;Width in pixels. Default: measured from the file, if ready in time.