fix: change deprecated FunctionLike type to SignatureDeclaration (#40795)

This commit is contained in:
Alex T
2020-10-06 17:51:01 +03:00
committed by GitHub
parent 1e49ad8370
commit 0c7d45a9ed
7 changed files with 12 additions and 12 deletions

View File

@@ -254,7 +254,7 @@ namespace ts.textChanges {
export type ThisTypeAnnotatable = FunctionDeclaration | FunctionExpression;
export function isThisTypeAnnotatable(containingFunction: FunctionLike): containingFunction is ThisTypeAnnotatable {
export function isThisTypeAnnotatable(containingFunction: SignatureDeclaration): containingFunction is ThisTypeAnnotatable {
return isFunctionExpression(containingFunction) || isFunctionDeclaration(containingFunction);
}