Currently when creating a static getter in a class, the word "static" is left out when code is transpiled to Flow. Flow is then unable to access the property in the class, this CR adds the keyword so that Flow may read the property within the class.
Typescript file
export default class Test {
static get hello(): string;
}
BEFORE CHANGE flow file
declare export default class Test {
hello: string;
}
AFTER CHANGE flow file
declare export default class Test {
static hello: string;
}
References issue
Currently when creating a static getter in a class, the word "static" is left out when code is transpiled to Flow. Flow is then unable to access the property in the class, this CR adds the keyword so that Flow may read the property within the class.
Typescript file
BEFORE CHANGE flow file
AFTER CHANGE flow file