withOptions
@tsed/config
Usage
typescript
import { withOptions } from "@tsed/config";
Overview
ts
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">;
};
name
ts
name: string | undefined;
priority
ts
priority: number | undefined;
validationSchema: import
ts
validationSchema: import("@tsed/schema").JsonSchema | undefined;
use
ts
use: Type<ConfigSource<Opts>>;
watch
ts
watch: boolean | undefined;
refreshOn
ts
refreshOn: "request" | "response" | undefined;
enabled
ts
enabled: boolean;
options
ts
options: Omit<InitialConfigSourceOptions & Opts, "name" | "priority" | "enabled" | "validationSchema" | "watch" | "refreshOn">;