mirror of
https://github.com/iconify/iconify.git
synced 2025-01-07 07:34:22 +00:00
fix: make options for css functions optional
This commit is contained in:
parent
b7a987208f
commit
73e7e5f0ee
@ -9,7 +9,7 @@ import type { IconCSSIconOptions } from './types';
|
||||
*/
|
||||
export function getIconCSS(
|
||||
icon: IconifyIcon,
|
||||
options: IconCSSIconOptions
|
||||
options: IconCSSIconOptions = {}
|
||||
): string {
|
||||
// Get mode
|
||||
const mode =
|
||||
|
@ -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[] = [];
|
||||
|
Loading…
Reference in New Issue
Block a user