Shumoku Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

English

@shumoku/core · 0.4.0 · function

standardsForConnectors

ソース

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

Standards available given the connectors on each port. Used by the editor's cascading "Standard" picker so the dropdown only offers links that physically fit. Empty arrays are treated permissively — we'd rather show too many than none. For combo ports (multiple connectors), this returns the union: any standard that fits at least one connector on each side qualifies. Returned as one flat list; group via `option.group` if the UI wants to split into sections.

standardsForConnectors(fromConnectors: readonly string[] | undefined, toConnectors: readonly string[] | undefined): StandardOption[]

パラメーター

名前 説明 既定値
fromConnectors readonly string[] | undefined 追加説明はありません。
toConnectors readonly string[] | undefined 追加説明はありません。

戻り値

StandardOption[]

libs/@shumoku/core/src/models/standards.ts:392