rune-langium / visual-editor/src / splitNodeId
Function: splitNodeId()
ts
function splitNodeId(nodeId): {
name: string;
namespace: string;
};Defined in: packages/visual-editor/src/store/node-projection.ts:73
Split a node id into { namespace, name } by the last dot; namespace is '' when absent.
Parameters
| Parameter | Type |
|---|---|
nodeId | string |
Returns
ts
{
name: string;
namespace: string;
}| Name | Type | Defined in |
|---|---|---|
name | string | packages/visual-editor/src/store/node-projection.ts:73 |
namespace | string | packages/visual-editor/src/store/node-projection.ts:73 |