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:
parent
b7a987208f
commit
73e7e5f0ee
@ -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 =
|
||||||
|
@ -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[] = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user