Mathieu Acthernoene 828ee9875d Bump version
2019-01-01 16:51:11 +01:00

23 lines
550 B
TypeScript

declare module 'react-native-languages' {
interface EventData {
language: string;
languages: string[];
}
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;
}
export const language: string;
export const languages: string[];
let Module: RNLanguagesModule;
export default Module;
}