jaz-ts-utils
Advanced tools
Comparing version 7.6.0 to 7.6.1
import { Static, TObject } from "@sinclair/typebox"; | ||
import { Optionals } from "./types"; | ||
export declare type LoadConfigOptions = { | ||
export declare type LoadConfigOptions<T extends TObject> = { | ||
filePath?: string; | ||
schema: TObject; | ||
schema: T; | ||
}; | ||
export declare const defaultLoadConfigOptions: Optionals<LoadConfigOptions>; | ||
export declare const defaultLoadConfigOptions: Optionals<LoadConfigOptions<any>>; | ||
/** | ||
* Define a config structure in JSONSchema using Typebox and then load it | ||
*/ | ||
export declare function loadConfig<T extends TObject>(options: LoadConfigOptions): Promise<Static<T>>; | ||
export declare function loadConfig<T extends TObject>(options: LoadConfigOptions<T>): Promise<Static<T>>; |
{ | ||
"name": "jaz-ts-utils", | ||
"version": "7.6.0", | ||
"version": "7.6.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
53600