Enable @typescript-eslint/explicit-member-accessibility on /src (#9785)

* Enable `@typescript-eslint/explicit-member-accessibility` on /src

* Prettier
This commit is contained in:
Michael Telatynski 2022-12-16 12:29:59 +00:00 committed by GitHub
parent 51554399fb
commit f1e8e7f140
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
396 changed files with 1110 additions and 1098 deletions

View file

@ -33,7 +33,7 @@ export class MatrixDispatcher extends Dispatcher<ActionPayload> {
* an operation that the browser requires user interaction
* for. Default false (async).
*/
dispatch<T extends ActionPayload>(payload: T, sync = false) {
public dispatch<T extends ActionPayload>(payload: T, sync = false) {
if (payload instanceof AsyncActionPayload) {
payload.fn((action: ActionPayload) => {
this.dispatch(action, sync);
@ -60,7 +60,7 @@ export class MatrixDispatcher extends Dispatcher<ActionPayload> {
* @param {boolean=false} sync Whether the dispatch should be sync or not.
* @see dispatch(action: ActionPayload, sync: boolean)
*/
fire(action: Action, sync = false) {
public fire(action: Action, sync = false) {
this.dispatch({ action }, sync);
}
}