1 parent ae77c3e commit 7c96e51Copy full SHA for 7c96e51
2 files changed
packages/pipeline/src/compiler/index.ts
@@ -4,7 +4,7 @@ import { compilerTsTypingsDeclaration } from './typings'
4
5
export function compiler(configRead: ApiPipeline.ConfigRead) {
6
for (const output of configRead.outputs) {
7
- if (output.type === 'request')
+ if (output.type === 'request' && !configRead.config.onlyDeclaration)
8
output.ast = compilerTsRequestDeclaration(configRead)
9
if (output.type === 'typings')
10
output.ast = compilerTsTypingsDeclaration(configRead)
packages/shared/src/types/config.ts
@@ -71,6 +71,9 @@ export namespace ApiPipeline {
71
}
72
/** Mandatory parameters optional */
73
paramsPartial?: boolean
74
+
75
+ /** Only generate type declaration files */
76
+ onlyDeclaration?: boolean
77
78
79
export interface Config extends PreInputs, PreOutput, Meta {
0 commit comments