ncrudify
Version:
Configurable CRUD module for NestJS and Mongoose.
17 lines (16 loc) • 495 B
TypeScript
import { ConfigService } from "./config.service";
import { Config } from "./config.entity";
export declare class ConfigController {
private readonly configService;
constructor(configService: ConfigService);
getAll(): Record<string, any>;
updateConfig(model: string, updates: Partial<Config>): Promise<{
success: boolean;
model: string;
updates: Partial<Config>;
}>;
reload(): Promise<{
success: boolean;
message: string;
}>;
}