@nestjs/config
Version:
Nest - modern, fast, powerful node.js web framework (@config)
10 lines (9 loc) • 380 B
TypeScript
import type { StandardSchemaV1 } from '@standard-schema/spec';
/**
* Validates config using a Standard Schema (e.g. Zod, Arktype).
* @see https://standardschema.dev/
*/
export declare function validateWithStandardSchema(schema: StandardSchemaV1, config: Record<string, any>, options?: StandardSchemaV1.Options): Promise<{
error?: Error;
value: Record<string, any>;
}>;