2
0
mirror of https://github.com/iconify/iconify.git synced 2024-09-19 16:59:02 +00:00

fix: make options for css functions optional

This commit is contained in:
Vjacheslav Trushkin 2022-12-10 17:19:51 +02:00
parent b7a987208f
commit 73e7e5f0ee
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import type { IconCSSIconOptions } from './types';
*/
export function getIconCSS(
icon: IconifyIcon,
options: IconCSSIconOptions
options: IconCSSIconOptions = {}
): string {
// Get mode
const mode =

View File

@ -24,7 +24,7 @@ const defaultSelectors: IconCSSSelectorOptions = {
export function getIconsCSS(
iconSet: IconifyJSON,
names: string[],
options: IconCSSIconSetOptions
options: IconCSSIconSetOptions = {}
): string {
const css: CSSUnformattedItem[] = [];
const errors: string[] = [];