add declare to class properties type annotations (#12257)
* add declare to class properties type annotations * chore: use preset-flow
This commit is contained in:
@@ -23,7 +23,7 @@ type raiseFunction = (number, string, ...any) => void;
|
||||
|
||||
export default class ClassScopeHandler {
|
||||
stack: Array<ClassScope> = [];
|
||||
raise: raiseFunction;
|
||||
declare raise: raiseFunction;
|
||||
undefinedPrivateNames: Map<string, number> = new Map();
|
||||
|
||||
constructor(raise: raiseFunction) {
|
||||
|
||||
@@ -39,8 +39,8 @@ type raiseFunction = (number, string, ...any) => void;
|
||||
// current scope in order to detect duplicate variable names.
|
||||
export default class ScopeHandler<IScope: Scope = Scope> {
|
||||
scopeStack: Array<IScope> = [];
|
||||
raise: raiseFunction;
|
||||
inModule: boolean;
|
||||
declare raise: raiseFunction;
|
||||
declare inModule: boolean;
|
||||
undefinedExports: Map<string, number> = new Map();
|
||||
undefinedPrivateNames: Map<string, number> = new Map();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user