@shumoku/core · 0.4.0 · function
classifyIcon
APIの説明は英語のcanonical sourceを表示しています。
Classify a raw icon string into inline-SVG vs URL. Inline content starts with `<` (either a bare `<path .../>` fragment or a full `<svg>...</svg>` block). Anything else is treated as a URL, including `data:` URIs.
classifyIcon(icon: string | undefined): ResolvedIcon | null パラメーター
| 名前 | 型 | 説明 | 既定値 |
|---|---|---|---|
icon | string | undefined | 追加説明はありません。 | — |
戻り値
ResolvedIcon | null