message: Fix typescript warnings
diff: @@ -47,7 +47,7 @@ describe('StorageTaskBroker', () => {
  const logger = getVoidLogger();
  it('should claim a dispatched work item', async () => {
  const broker = new StorageTaskBroker(storage, logger);
  - await broker.dispatch({ steps: [] });
  + await broker.dispatch({} as TaskSpec);
  await expect(broker.claim()).resolves.toEqual(expect.any(TaskAgent));
  });
  @@ -57,7 +57,7 @@ describe('StorageTaskBroker', () => {
  await expect(Promise.race([promise, 'waiting'])).resolves.toBe('waiting');
  - await broker.dispatch({ steps: [] });
  + await broker.dispatch({} as TaskSpec);
  await expect(promise).resolves.toEqual(expect.any(TaskAgent));
  });
  @@ -80,7 +80,7 @@ describe('StorageTaskBroker', () => {
  it('should complete a task', async () => {
  const broker = new StorageTaskBroker(storage, logger);
  - const dispatchResult = await broker.dispatch({ steps: [] });
  + const dispatchResult = await broker.dispatch({} as TaskSpec);
  const task = await broker.claim();
  await task.complete('completed');
  const taskRow = await storage.getTask(dispatchResult.taskId);
  @@ -89,7 +89,7 @@ describe('StorageTaskBroker', () => {
  it('should fail a task', async () => {
  const broker = new StorageTaskBroker(storage, logger);
  - const dispatchResult = await broker.dispatch({ steps: [] });
  + const dispatchResult = await broker.dispatch({} as TaskSpec);
  const task = await broker.claim();
  await task.complete('failed');
  const taskRow = await storage.getTask(dispatchResult.taskId);
  @@ -100,7 +100,7 @@ describe('StorageTaskBroker', () => {
  const broker1 = new StorageTaskBroker(storage, logger);
  const broker2 = new StorageTaskBroker(storage, logger);
  - const { taskId } = await broker1.dispatch({ steps: [] });
  + const { taskId } = await broker1.dispatch({} as TaskSpec);
  const logPromise = new Promise<DbTaskEventRow[]>(resolve => {
  const observedEvents = new Array<DbTaskEventRow>();
  @@ -139,7 +139,7 @@ describe('StorageTaskBroker', () => {
  it('should heartbeat', async () => {
  const broker = new StorageTaskBroker(storage, logger);
  - const { taskId } = await broker.dispatch({ steps: [] });
  + const { taskId } = await broker.dispatch({} as TaskSpec);
  const task = await broker.claim();
  const initialTask = await storage.getTask(taskId);
  @@ -157,7 +157,7 @@ describe('StorageTaskBroker', () => {
  it('should be update the status to failed if heartbeat fails', async () => {
  const broker = new StorageTaskBroker(storage, logger);
  - const { taskId } = await broker.dispatch({ steps: [] });
  + const { taskId } = await broker.dispatch({} as TaskSpec);
  const task = await broker.claim();
  jest
  