Function: staticProvider()
ts
function staticProvider(document, name?): ConfigProvider;Defined in: providers/static.ts:15
Create a provider that returns a fixed configuration document.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
document | ConfigDocument | undefined | The document that load returns. |
name | string | 'static' | The provider name. The default is 'static'. |
Returns
A read-only provider.
Example
ts
createWand({ providers: [staticProvider({ v: 1, chalk: { size: 20 } })] });