Skip to content

Interface: ModuleSource ​

Defined in: yang/dist/source/source.d.ts:23

Where YANG module text comes from: anything that can return module X (at revision R), such as memorySource() or the bundled IETF modules.

Methods ​

load() ​

ts
load(name, revision?): Promise<ModuleText | undefined>;

Defined in: yang/dist/source/source.d.ts:28

Finds a module or submodule. Without a revision, returns the latest revision the source has. Resolves to undefined when it has none.

Parameters ​

name ​

string

revision? ​

string

Returns ​

Promise<ModuleText | undefined>

Released under the MIT Licence.