2
0
mirror of https://github.com/iconify/iconify.git synced 2025-01-22 14:48:24 +00:00

Make second parameter for buildIcon optional

This commit is contained in:
Vjacheslav Trushkin 2022-02-21 18:05:24 +02:00
parent 1ee0caf216
commit a6d90fd7a9

View File

@ -20,7 +20,7 @@ export interface IconifyBuilderFunctions {
) => string | number;
buildIcon: (
icon: IconifyIcon,
customisations: IconifyIconCustomisations
customisations?: IconifyIconCustomisations
) => IconifyIconBuildResult;
}
@ -29,7 +29,7 @@ export interface IconifyBuilderFunctions {
*/
export function buildIcon(
icon: IconifyIcon,
customisations: IconifyIconCustomisations
customisations?: IconifyIconCustomisations
): IconifyIconBuildResult {
return iconToSVG(
fullIcon(icon),