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');
|
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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user