Skip to content

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 ​

ParameterType
nodeIdstring

Returns ​

ts
{
  name: string;
  namespace: string;
}
NameTypeDefined in
namestringpackages/visual-editor/src/store/node-projection.ts:73
namespacestringpackages/visual-editor/src/store/node-projection.ts:73

Core packages released under MIT. Studio app released under FSL-1.1-ALv2.