Replace any with unknown

Change-Id: Iacb0aeed2e1d16f8face309033699c016f3d400a
This commit is contained in:
Dhruv Srivastava
2020-10-06 19:52:08 +02:00
parent e1b692cca5
commit fda8fe669e
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'); this._hook = this.plugin.hook('change-metadata-item');
} }
// eslint-disable-next-line @typescript-eslint/no-explicit-any onLabelsChanged(callback: (value: unknown) => void) {
onLabelsChanged(callback: (value: any) => void) {
if (!this._hook) { if (!this._hook) {
this._createHook(); this._createHook();
} }

View File

@@ -49,8 +49,7 @@ export const util = {
// True if the promise is either resolved or reject (possibly cancelled) // True if the promise is either resolved or reject (possibly cancelled)
let isDone = false; let isDone = false;
// eslint-disable-next-line @typescript-eslint/no-explicit-any let rejectPromise: (reason?: unknown) => void;
let rejectPromise: (reason?: any) => void;
const wrappedPromise: CancelablePromise<T> = new Promise( const wrappedPromise: CancelablePromise<T> = new Promise(
(resolve, reject) => { (resolve, reject) => {