@nestia/sdk
Version:
Nestia SDK and Swagger generator
17 lines (16 loc) • 756 B
TypeScript
import { IReflectOperationError } from "../structures/IReflectOperationError";
import { ITypedApplication } from "../structures/ITypedApplication";
export declare namespace SdkGenerator {
const generate: (app: ITypedApplication) => Promise<void>;
const validate: (app: ITypedApplication) => IReflectOperationError[];
/**
* Emplace the static bundle files (`index.ts`, `module.ts`, ...) into the SDK
* output directory.
*
* Files the user already has are never touched, so that hand-written
* customizations (e.g. extra re-exports in `module.ts`) survive regeneration.
* Only missing files are filled in from the bundle.
*/
const bundle: (output: string) => Promise<void>;
const BUNDLE_PATH: string;
}