@reusable-ui/icon
Version:
An icon set component for React app.
19 lines (18 loc) • 702 B
TypeScript
/**
* Merges two specified url to final url.
* @param base The relative or absolute base url.
* @param target The relative or absolute target url.
* @returns A final url.
* If `target` is an absolute url, the `base` discarded.
* Otherwise, the combination of `base` url followed by `target` url.
*/
export declare const concatUrl: (base: string, target: string) => string;
/**
* Gets a file format based on the extension of the specified `fileName`.
* @param fileName The name of the file to retrieve.
* @returns
* A `string` represents a file format.
* -or-
* `null` if the format file is unknown.
*/
export declare const formatOf: (fileName: string) => string | null;