Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

EN

@shumoku/core · 0.4.2 · function

resolveIcon

ソース

APIの説明は英語のcanonical sourceを表示しています。

Resolve the icon to render for a given spec. Returns the explicit `spec.icon` if any; otherwise the bundled device-type fallback; otherwise null.

resolveIcon(spec: NodeSpec | undefined): ResolvedIcon | null

パラメーター

名前 型 説明 既定値
spec NodeSpec | undefined 追加説明はありません。 —

戻り値

ResolvedIcon | null

libs/@shumoku/core/src/libs/@shumoku/core/src/icons/resolve.ts:41