ValueProvider
interface in meocord/interface and meocord/testing Since 4.1.0
interface ValueProvider<T = any>A provider that binds an existing value, such as a settings object or a configured client, as it is.
Examples
export const SETTINGS = createToken<{ prefix: string }>('Settings')
const settings: ValueProvider<{ prefix: string }> = { provide: SETTINGS, useValue: { prefix: '!' } }Members
provide
provide: ProviderToken<T>The token classes inject the value by.
useValue
useValue: TThe value itself, shared by every class that injects it.