UNPKG

@deployport/specular-runtime

Version:

Runtime for Specular API clients with support for Node.js and Browser

30 lines (29 loc) 900 B
/** * Parses a time string or returns the time parsing when necessary * @param maybeTime * @returns */ export declare function ParseTime(maybeTime: any): Date | null; /** * Parses a time string or throws an error * @param maybeTime */ export declare function RequireParseTime(maybeTime: any): Date; /** * Parse a blob from a base64 string, or throw an error * @param maybeStringBase64 * @returns Blob instance */ export declare function ParseRequiredBinary(maybeStringBase64: any): Blob; /** * Parses a blob from a base64 string, or returns null. Only returns an error if the value is not a string * @param maybeStringBase64 * @returns */ export declare function ParseOptionalBinary(maybeStringBase64: any): Blob | null; /** * Converts a blob to base64 string * @param blob * @returns */ export declare function BlobToBase64(blob: Blob | null | undefined): Promise<string | null>;