commit fda8fe669eb0b90b6b3e9bc43c17c626002f94ce Author: Dhruv Srivastava Date: Tue Oct 6 19:52:08 2020 +0200 Replace any with unknown Change-Id: Iacb0aeed2e1d16f8face309033699c016f3d400a diff --git a/polygerrit-ui/app/elements/plugins/gr-change-metadata-api/gr-change-metadata-api.ts b/polygerrit-ui/app/elements/plugins/gr-change-metadata-api/gr-change-metadata-api.ts index d3452dc..322d32e 100644 --- a/polygerrit-ui/app/elements/plugins/gr-change-metadata-api/gr-change-metadata-api.ts +++ b/polygerrit-ui/app/elements/plugins/gr-change-metadata-api/gr-change-metadata-api.ts @@ -30,8 +30,7 @@ export class GrChangeMetadataApi { this._hook = this.plugin.hook('change-metadata-item'); } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - onLabelsChanged(callback: (value: any) => void) { + onLabelsChanged(callback: (value: unknown) => void) { if (!this._hook) { this._createHook(); } diff --git a/polygerrit-ui/app/scripts/util.ts b/polygerrit-ui/app/scripts/util.ts index 59ade33..bf7120f 100644 --- a/polygerrit-ui/app/scripts/util.ts +++ b/polygerrit-ui/app/scripts/util.ts @@ -49,8 +49,7 @@ export const util = { // True if the promise is either resolved or reject (possibly cancelled) let isDone = false; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - let rejectPromise: (reason?: any) => void; + let rejectPromise: (reason?: unknown) => void; const wrappedPromise: CancelablePromise = new Promise( (resolve, reject) => {