error TS2322

Author: sc0h0Created Feb 23, 2024Updated Feb 17, 2025

Anyone receiving this error message? Trying to run on Windows.

src/core.ts:87:44 - error TS2322: Type '(data: ReadonlyDeep<Dictionary | Dictionary[]>, datasetIdOrName?: string | undefined) => Promise<void>' is not assignable to type '(args_0: any, ...args_1: unknown[]) => Promise<void>'.
  Types of parameters 'datasetIdOrName' and 'args_1' are incompatible.
    Type 'unknown' is not assignable to type 'string | undefined'.

87           await config.onVisitPage({ page, pushData });
                                              ~~~~~~~~

  src/config.ts:66:9
    66         pushData: z.function().args(z.any()).returns(z.promise(z.void())),
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The expected type comes from property 'pushData' which is declared here on type '{ page: Page; pushData: (args_0: any, ...args_1: unknown[]) => Promise<void>; }'


Found 1 error in src/core.ts:87

This is the config I am using to test: