Skip to content

Function: compileNamedPath() ​

ts
function compileNamedPath(path): NamedPathTemplate;

Defined in: netconf/src/content/named-path.ts:80

Parse a named path's template: find its placeholders, decide where each sits, and check the path is valid with sample values.

Parameters ​

path ​

string

Returns ​

NamedPathTemplate

Throws ​

PathError for a malformed placeholder or path.

Released under the MIT Licence.