@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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.00ts3.5
1.2.31,456ts5.6
1.2.31,456latest
1.2.31,456ts4.5
1.2.31,456ts4.6
1.2.31,456ts4.7
1.2.31,456ts4.8
1.2.31,456ts4.9
1.2.31,456ts5.0
1.2.31,456ts5.1
1.2.31,456ts5.2
1.2.31,456ts5.3
1.2.31,456ts5.4
1.2.31,456ts5.5
1.2.31,456ts5.7
1.2.18ts3.6
1.2.18ts3.7
1.2.18ts3.8
1.2.18ts3.9
1.2.18ts4.0
1.2.18ts4.1
1.2.18ts4.2
1.2.18ts4.3
1.2.18ts4.4

Version History

VersionDownloads (Last 7 Days)Published
1.2.31,456
1.2.20
1.2.18
1.2.00

Package Sidebar

Install

npm i @types/android-device-list

Weekly Downloads

1,464

Version

1.2.3

License

MIT

Unpacked Size

4.87 kB

Total Files

5

Last publish

Collaborators

  • types