Skip to content

Commit

Permalink
mark isRestApiBase as @internal
Browse files Browse the repository at this point in the history
  • Loading branch information
Niranjan Jayakar committed Jun 11, 2020
1 parent ce878c0 commit 9f7ee9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-apigateway/lib/method.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ export class Method extends Resource {

this.methodId = resource.ref;

if (RestApiBase.isRestApiBase(props.resource.api)) {
(props.resource.api as any)._attachMethod(this);
if (RestApiBase._isRestApiBase(props.resource.api)) {
props.resource.api._attachMethod(this);
}

const deployment = props.resource.api.latestDeployment;
Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-apigateway/lib/private/restapi-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ export abstract class RestApiBase extends Resource implements IRestApi {

/**
* Checks if the given object is an instance of RestApiBase.
* @internal
*/
public static isRestApiBase(x: any): x is IRestApi {
public static _isRestApiBase(x: any): x is RestApiBase {
return x !== null && typeof(x) === 'object' && RESTAPI_SYMBOL in x;
}

Expand Down

0 comments on commit 9f7ee9b

Please sign in to comment.