2
0
mirror of https://github.com/iconify/iconify.git synced 2025-01-09 00:10:47 +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( export function getIconCSS(
icon: IconifyIcon, icon: IconifyIcon,
options: IconCSSIconOptions options: IconCSSIconOptions = {}
): string { ): string {
// Get mode // Get mode
const mode = const mode =

View File

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