@tsed/config
Version:
Configuration management for Ts.ED
13 lines (12 loc) • 728 B
TypeScript
import type { Type } from "@tsed/core";
import type { ConfigSource, InitialConfigSourceOptions } from "../interfaces/ConfigSource.js";
export declare function withOptions<Opts>(use: Type<ConfigSource<Opts>>, { name, priority, validationSchema, enabled, refreshOn, watch, ...opts }: InitialConfigSourceOptions & Opts): {
name: string | undefined;
priority: number | undefined;
validationSchema: import("@tsed/schema").JsonSchema | undefined;
use: Type<ConfigSource<Opts>>;
watch: boolean | undefined;
refreshOn: "request" | "response" | undefined;
enabled: boolean;
options: Omit<InitialConfigSourceOptions & Opts, "name" | "priority" | "enabled" | "validationSchema" | "watch" | "refreshOn">;
};