Skip to content

Commit 9f31375

Browse files
committed
use record in place of object in unknown shape objects
1 parent 014d2f1 commit 9f31375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugins/task_manager/server/task_manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export class TaskManager {
284284
*/
285285
public async schedule(
286286
taskInstance: TaskInstanceWithDeprecatedFields,
287-
options?: object
287+
options?: Record<string, unknown>
288288
): Promise<ConcreteTaskInstance> {
289289
await this.waitUntilStarted();
290290
const { taskInstance: modifiedTask } = await this.middleware.beforeSave({
@@ -319,7 +319,7 @@ export class TaskManager {
319319
*/
320320
public async ensureScheduled(
321321
taskInstance: TaskInstanceWithId,
322-
options?: object
322+
options?: Record<string, unknown>
323323
): Promise<TaskInstanceWithId> {
324324
try {
325325
return await this.schedule(taskInstance, options);

0 commit comments

Comments
 (0)