Skip to content

JsonConfigSource

@tsed/config

Usage

typescript
import { JsonConfigSource } from "@tsed/config/src/types/providers/json/JsonConfigSource";

See /packages/config/src/types/providers/json/JsonConfigSource.ts.

Overview

ts
class JsonConfigSource implements ConfigSource<JsonConfigSourceOptions> {
    options: JsonConfigSourceOptions;
    getAll(): Record<string, unknown>;
    watch(onChange: () => void): () => void;
}

options

ts
options: JsonConfigSourceOptions;

getAll

ts
getAll(): Record<string, unknown>;

watch

ts
watch(onChange: () => void): () => void;

Released under the MIT License.