Commit 72d1a24c authored by Felix Schindler's avatar Felix Schindler Committed by Mehdi Achour

fix(deviceinfo.d.ts): fix typescript declaration export (#478)

In #466 the export of the main module was changed to use default export.
Change the typescript declaration to use default export, too.
parent 02d63b9a
// should be imported this way: // should be imported this way:
// import * as DeviceInfo from 'react-native-device-info'; // import DeviceInfo from 'react-native-device-info';
export function getUniqueID(): string; declare const _default: {
export function getManufacturer(): string; getUniqueID: () => string;
export function getBrand(): string; getManufacturer: () => string;
export function getModel(): string; getBrand: () => string;
export function getDeviceId(): string; getModel: () => string;
export function getSystemName(): string; getDeviceId: () => string;
export function getSystemVersion(): string; getSystemName: () => string;
export function getBundleId(): string; getSystemVersion: () => string;
export function getApplicationName(): string; getBundleId: () => string;
export function getBuildNumber(): string; getApplicationName: () => string;
export function getVersion(): string; getBuildNumber: () => string;
export function getReadableVersion(): string; getVersion: () => string;
export function getDeviceName(): string; getReadableVersion: () => string;
export function getUserAgent(): string; getDeviceName: () => string;
export function getDeviceLocale(): string; getUserAgent: () => string;
export function getDeviceCountry(): string; getDeviceLocale: () => string;
export function getTimezone(): string; getDeviceCountry: () => string;
export function getInstanceID(): string; getTimezone: () => string;
export function getInstallReferrer(): string; getInstanceID: () => string;
export function isEmulator(): boolean; getInstallReferrer: () => string;
export function isTablet(): boolean; isEmulator: () => boolean;
export function getFontScale(): number; isTablet: () => boolean;
export function is24Hour(): boolean; getFontScale: () => number;
export function isPinOrFingerprintSet(): ( is24Hour: () => boolean;
cb: (isPinOrFingerprintSet: boolean) => void isPinOrFingerprintSet: (cb: (isPinOrFingerprintSet: boolean) => void) => void;
) => void; getFirstInstallTime: () => number;
export function getFirstInstallTime(): number; getLastUpdateTime: () => number;
export function getLastUpdateTime(): number; getSerialNumber: () => string;
export function getSerialNumber(): string; getIPAddress: () => Promise<string>
export function getIPAddress(): Promise<string>; getMACAddress: () => Promise<string>
export function getMACAddress(): Promise<string>; getPhoneNumber: () => string;
export function getPhoneNumber(): string; getAPILevel: () => number;
export function getAPILevel(): number; getCarrier: () => string;
export function getCarrier(): string; getTotalMemory: () => number;
export function getTotalMemory(): number; getMaxMemory: () => number;
export function getMaxMemory(): number; getTotalDiskCapacity: () => number;
export function getTotalDiskCapacity(): number; getFreeDiskStorage: () => number;
export function getFreeDiskStorage(): number; getBatteryLevel: () => Promise<number>
export function getBatteryLevel(): Promise<number>; };
export default _default;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment