# getNodeId

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

@shumoku/core · 0.4.0 · function

# getNodeId

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

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

Helper to get node ID from endpoint. Kept as a tiny accessor so callers read intent ("the link's source node") rather than reaching into shape.

```
getNodeId(endpoint: LinkEndpoint): string
```

## パラメーター

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

## 戻り値

```
string
```

[`libs/@shumoku/core/src/models/types.ts:954`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/models/types.ts#L954)
