Replace any with unknown
Change-Id: Iacb0aeed2e1d16f8face309033699c016f3d400a
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user