Merge "Replace any with unknown"

This commit is contained in:
Dhruv Srivastava
2020-10-06 20:18:04 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 4 deletions

View File

@@ -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();
}

View File

@@ -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<T> = new Promise(
(resolve, reject) => {