Skip to content

Commit b4ee319

Browse files
committed
types for pathParameterUsedAsPath
1 parent b8b2bb5 commit b4ee319

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = (app, options) => {
1616
options.serializeLambdaArguments = options.serializeLambdaArguments !== undefined ? options.serializeLambdaArguments : false
1717
options.decorateRequest = options.decorateRequest !== undefined ? options.decorateRequest : true
1818
options.retainStage = options.retainStage !== undefined ? options.retainStage : false
19-
options.proxiedPathParameterAsPath = options.proxiedPathParameterAsPath !== undefined ? options.proxiedPathParameterAsPath : false
19+
options.pathParameterUsedAsPath = options.pathParameterUsedAsPath !== undefined ? options.pathParameterUsedAsPath : false
2020
let currentAwsArguments = {}
2121
if (options.decorateRequest) {
2222
options.decorationPropertyName = options.decorationPropertyName || 'awsLambda'

types/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ declare namespace awsLambdaFastify {
1212
decorationPropertyName?: string;
1313
enforceBase64?: (response: LightMyRequestResponse) => boolean;
1414
retainStage?: boolean;
15+
/**
16+
* usually set to 'proxy', if used
17+
*/
18+
pathParameterUsedAsPath?: string;
1519
}
1620

1721
export interface LambdaResponse {

0 commit comments

Comments
 (0)