Skip to content

Function: schemaModules() ​

ts
function schemaModules(library, schema?): 
  | Pick<LibraryDatastore, "modules" | "importOnlyModules">
  | undefined;

Defined in: netconf/src/operations/yang-library.ts:184

The modules of a library schema, by name: its module sets merged as a datastore's are. With no name, every module set merged, the one schema of a library that lists none (RFC 7895, or an RFC 8525 library without schemas). Undefined when the library has no schema of that name.

Parameters ​

library ​

YangLibrary

schema? ​

string

Returns ​

| Pick<LibraryDatastore, "modules" | "importOnlyModules"> | undefined

Released under the MIT Licence.