diff --git a/index.d.ts b/index.d.ts index eb63a43..e4c351f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,22 +1,22 @@ declare module 'react-native-languages' { interface EventData { - language: string - languages: string[] + language: string; + languages: string[]; } - type EventHandler = (eventData: EventData) => any + type EventHandler = (eventData: EventData) => any; interface RNLanguagesModule { - readonly language: string - readonly languages: string[] - addEventListener: (type: 'change', handler: EventHandler) => void - removeEventListener: (type: 'change', handler: EventHandler) => void + readonly language: string; + readonly languages: string[]; + addEventListener: (type: 'change', handler: EventHandler) => void; + removeEventListener: (type: 'change', handler: EventHandler) => void; } - export const language: string - export const languages: string[] + export const language: string; + export const languages: string[]; - let Module: RNLanguagesModule + let Module: RNLanguagesModule; - export default Module + export default Module; } diff --git a/package.json b/package.json index 084d156..c185429 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-languages", - "version": "3.0.1", + "version": "3.0.2", "license": "MIT", "description": "React Native properties and methods related to the language of the device", "repository": "https://github.com/react-community/react-native-languages",