Skip to content

Commit

Permalink
don't break the constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Niranjan Jayakar committed Apr 24, 2020
1 parent aff7f97 commit 67f88ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@aws-cdk/aws-apigateway/lib/authorizer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Construct, Resource } from '@aws-cdk/core';
import { Construct, Resource, ResourceProps } from '@aws-cdk/core';
import { AuthorizationType } from './method';
import { RestApi } from './restapi';

Expand All @@ -18,8 +18,8 @@ export abstract class Authorizer extends Resource implements IAuthorizer {
public readonly abstract authorizerId: string;
public readonly authorizationType?: AuthorizationType = AuthorizationType.CUSTOM;

public constructor(scope: Construct, id: string) {
super(scope, id);
public constructor(scope: Construct, id: string, props?: ResourceProps) {
super(scope, id, props);

Object.defineProperty(this, AUTHORIZER_SYMBOL, { value: true });
}
Expand Down

0 comments on commit 67f88ea

Please sign in to comment.