1.0.3 • Published 6 months ago

@types/duckduckgo-images-api v1.0.3

Weekly downloads
88
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/duckduckgo-images-api

Summary

This package contains type definitions for duckduckgo-images-api (https://github.com/KshitijMhatre/duckduckgo-images-api).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/duckduckgo-images-api.

index.d.ts

// Type definitions for duckduckgo-images-api 1.0
// Project: https://github.com/KshitijMhatre/duckduckgo-images-api
// Definitions by: Bart Duisters <https://github.com/bartduisters>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export interface DuckDuckGoImage {
    image: string;
    title: string;
    height: number;
    thumbnail: string;
    width: number;
    url: string;
    source: string;
}

export function image_search(params: {
    query: string;
    moderate?: boolean | undefined;
    retries?: number | undefined;
    iterations?: number | undefined;
}): Promise<DuckDuckGoImage[]>;

export function image_search_generator(params: {
    query: string;
    moderate?: boolean | undefined;
    retries?: number | undefined;
    iterations?: number | undefined;
}): Promise<DuckDuckGoImage[]>;

Additional Details

  • Last updated: Thu, 08 Jul 2021 09:08:57 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Bart Duisters.