# standardsForConnectors

Canonical: https://docs.shumoku.dev/ja/library/api/standardsForConnectors
Language: ja

@shumoku/core · 0.4.0 · function

# standardsForConnectors

[ソース](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/models/standards.ts#L392)

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`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/models/standards.ts#L392)
