Skip to content

Type error occurs when 'google_images' is used for the engine value of the getJson function. #16

Open
@qwerq123456

Description

@qwerq123456

I use getJson function with engine value 'google_images' like below

const params = {
      api_key: process.env.SERPAPI_SECRET_KEY,
      q: query,
    } satisfies GoogleParameters;
const response = await getJson('google_images', params);

It works well but there is type error Argument of type '"google_images"' is not assignable to parameter of type 'keyof EngineMap'.

Can you add google_images in EngineMap?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions