diff --git a/package.json b/package.json index a10df7e..6243f52 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "test", "main": "src/index", "module": "lib/module/index", - "types": "lib/typescript/index.d.ts", + "types": "src/types/index.d.ts", "react-native": "src/index", "source": "src/index", "files": [ diff --git a/src/types/index.d.ts b/src/types/index.d.ts new file mode 100644 index 0000000..c430e41 --- /dev/null +++ b/src/types/index.d.ts @@ -0,0 +1,7 @@ +declare module 'react-native-incomingcall' { + export function registerReceiver(): void; + export function unregisterReceiver(): void; + export function showIncomingCall(options?: Record): void; + export function endCall(): void; + export function areNotificationsEnabled(): Promise; +}