Skip to content

Commit 12af1f2

Browse files
committed
add required export
1 parent 7225750 commit 12af1f2

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

packages/rest-api-construct/API.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,49 @@ import * as apiGateway from 'aws-cdk-lib/aws-apigateway';
88
import { Construct } from 'constructs';
99
import * as lamb from 'aws-cdk-lib/aws-lambda';
1010

11+
// @public (undocumented)
12+
export type ExistingDirectory = {
13+
path: string;
14+
};
15+
16+
// @public (undocumented)
17+
export type ExistingLambda = {
18+
id: string;
19+
name: string;
20+
};
21+
22+
// @public (undocumented)
23+
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
24+
25+
// @public (undocumented)
26+
export type NewFromCode = {
27+
code: string;
28+
};
29+
1130
// @public
1231
export class RestApiConstruct extends Construct {
13-
// Warning: (ae-forgotten-export) The symbol "RestApiConstructProps" needs to be exported by the entry point index.d.ts
1432
constructor(scope: Construct, id: string, props: RestApiConstructProps);
1533
// (undocumented)
1634
readonly api: apiGateway.RestApi;
1735
}
1836

37+
// @public (undocumented)
38+
export type RestApiConstructProps = {
39+
apiName: string;
40+
apiProps: RestApiPathConfig[];
41+
};
42+
43+
// @public (undocumented)
44+
export type RestApiPathConfig = {
45+
path: string;
46+
routes: HttpMethod[];
47+
lambdaEntry: LambdaSource;
48+
};
49+
50+
// Warnings were encountered during analysis:
51+
//
52+
// src/types.ts:22:3 - (ae-forgotten-export) The symbol "LambdaSource" needs to be exported by the entry point index.d.ts
53+
1954
// (No @packageDocumentation comment for this package)
2055

2156
```
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from './construct.js';
2+
export { RestApiConstructProps } from './types.js';

0 commit comments

Comments
 (0)