mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
refactor(compiler): switch Binary.isAssignmentOperation to type guard function
Improve `Binary.isAssignmentOperation` types
(cherry picked from commit 4fb24cadee)
This commit is contained in:
parent
a6efb7752d
commit
018edd5566
1 changed files with 1 additions and 1 deletions
|
|
@ -298,7 +298,7 @@ export class Binary extends AST {
|
|||
return visitor.visitBinary(this, context);
|
||||
}
|
||||
|
||||
static isAssignmentOperation(op: string): boolean {
|
||||
static isAssignmentOperation(op: string): op is AssignmentOperation {
|
||||
return (
|
||||
op === '=' ||
|
||||
op === '+=' ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue