parseConfigString

Parses the config file or string and returns a Config instance.

T
parseConfigString
(
T
)

Parameters

path string

When parsing a string, the path corresponding to it

strict StrictMode

Whether the parsing should reject unknown keys in the document, warn, or ignore them (default: StrictMode.Error)

Return Value

Type: T

Config instance

Throws

Exception if parsing the config file failed.

Meta