Skip to content

Function: staticProvider() ​

ts
function staticProvider(document, name?): ConfigProvider;

Defined in: providers/static.ts:15

Create a provider that returns a fixed configuration document.

Parameters ​

ParameterTypeDefault valueDescription
documentConfigDocumentundefinedThe document that load returns.
namestring'static'The provider name. The default is 'static'.

Returns ​

ConfigProvider

A read-only provider.

Example ​

ts
createWand({ providers: [staticProvider({ v: 1, chalk: { size: 20 } })] });