@types/android-device-list
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

Installation

npm install --save @types/android-device-list

Summary

This package contains type definitions for android-device-list (https://github.com/pbakondy/android-device-list#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/android-device-list.

index.d.ts

/**
 * Returns the full device list
 */
export function deviceList(): Device[];

/**
 * Returns the full brand list
 */
export function brandList(): string[];

/**
 * Returns a device list with matching retail brand.
 */
export function getDevicesByBrand(brand: string, options?: Options): Device[];

/**
 * Returns a device list with matching marketing name.
 */
export function getDevicesByName(name: string, options?: Options): Device[];

/**
 * Returns a device list with matching build.os.DEVICE.
 */
export function getDevicesByDeviceId(deviceId: string, options?: Options): Device[];

/**
 * Returns a device list with matching build.os.MODEL.
 */
export function getDevicesByModel(model: string, Options?: Options): Device[];

export interface Options {
    /**
     * do not care of case type
     * @default false
     */
    caseInsensitive?: boolean | undefined;

    /**
     * return partial (substring) results too
     * @default false
     */
    contains?: boolean | undefined;
}

export interface Device {
    brand: string;
    name: string;
    device: string;
    model: string;
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: none

Credits

These definitions were written by Piotr Błażejewicz.

/@types/android-device-list/

    Package Sidebar

    Install

    npm i @types/android-device-list

    Weekly Downloads

    1,345

    Version

    1.2.3

    License

    MIT

    Unpacked Size

    4.87 kB

    Total Files

    5

    Last publish

    Collaborators

    • types