Skip to content

Commit

Permalink
Add flowtypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kim committed Oct 6, 2017
1 parent dbbe53f commit 58fb6a5
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions deviceinfo.js.flow
@@ -0,0 +1,31 @@
// @flow

declare module.exports: {
getUniqueID: () => string,
getManufacturer: () => string,
getBrand: () => string,
getModel: () => string,
getDeviceId: () => string,
getSystemName: () => string,
getSystemVersion: () => string,
getBundleId: () => string,
getBuildNumber: () => string,
getVersion: () => string,
getReadableVersion: () => string,
getDeviceName: () => string,
getUserAgent: () => string,
getDeviceLocale: () => string,
getDeviceCountry: () => string,
getTimezone: () => string,
isEmulator: () => boolean,
isTablet: () => boolean,
isPinOrFingerprintSet: () => (cb: (isPinOrFingerprintSet: boolean) => void) => void,
getAPILevel: () => number,
getInstanceID: () => string,
getPhoneNumber: () => ?string,
getFirstInstallTime: () => number,
getLastUpdateTime: () => number,
getSerialNumber: () => string,
getIPAddress: () => Promise<string>,
getMACAddress: () => Promise<string>,
}

0 comments on commit 58fb6a5

Please sign in to comment.