# interfaceNamesMatch

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

@shumoku/core · 0.4.0 · function

# interfaceNamesMatch

[ソース](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/observation/interface-name.ts#L143)

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

Whether two interface names denote the same physical port. Same canonical prefix with aligning numbers (score ≥ 0.5), OR — for cross-vocabulary cases like TTDB's speed-code \`hg\` vs Juniper \`et-\` where prefixes differ but the port number is identical — the full number sequence matches.

```
interfaceNamesMatch(a: string, b: string): boolean
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `a` | `string` | 追加説明はありません。 | `—` |
| `b` | `string` | 追加説明はありません。 | `—` |

## 戻り値

```
boolean
```

[`libs/@shumoku/core/src/observation/interface-name.ts:143`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/observation/interface-name.ts#L143)
