UNPKG

@wordpress/components

Version:
26 lines 697 B
export declare const INITIAL_BOUNDS: { width: number; height: number; }; /** * Gets the extension of a file name. * * @param filename The file name. * @return The extension of the file name. */ export declare function getExtension(filename?: string): string; /** * Checks if a file is a video. * * @param filename The file name. * @return Whether the file is a video. */ export declare function isVideoType(filename?: string): boolean; /** * Transforms a fraction value to a percentage value. * * @param fraction The fraction value. * @return A percentage value. */ export declare function fractionToPercentage(fraction: number): number; //# sourceMappingURL=utils.d.ts.map