1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-06 09:19:22 +02:00

Tools: Apply rule @typescript-eslint/ban-types

This commit is contained in:
Laurent Cozic
2023-06-30 10:30:29 +01:00
parent 48ef6db4a5
commit dd6eec6a03
153 changed files with 296 additions and 9 deletions

View File

@@ -73,6 +73,7 @@ interface AuthToken {
}
export interface RequestContext {
// eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied
dispatch: Function;
authToken: AuthToken;
token: string;
@@ -86,13 +87,16 @@ interface ResourceNameToRoute {
export default class Api {
// eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied
private token_: string | Function;
private authToken_: AuthToken = null;
private knownNounces_: any = {};
private actionApi_: any;
private resourceNameToRoute_: ResourceNameToRoute = {};
// eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied
private dispatch_: Function;
// eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied
public constructor(token: string | Function = null, dispatch: Function = null, actionApi: any = null) {
this.token_ = token;
this.actionApi_ = actionApi;