Skip to content

Commit a7e470a

Browse files
fiskerthePunderWoman
authored andcommitted
refactor(compiler): tighten Unary.operator type
Improve `Unary.operator` type
1 parent 4d19408 commit a7e470a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/compiler/src/expression_parser

packages/compiler/src/expression_parser/ast.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ export class Unary extends Binary {
385385
private constructor(
386386
span: ParseSpan,
387387
sourceSpan: AbsoluteSourceSpan,
388-
public operator: string,
388+
public operator: '+' | '-',
389389
public expr: AST,
390390
binaryOp: BinaryOperation,
391391
binaryLeft: AST,

0 commit comments

Comments
 (0)