Skip to content

Commit

Permalink
added types
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshaR1642 committed Jul 29, 2024
1 parent 6c0b405 commit 62ba768
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
7 changes: 7 additions & 0 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
declare module 'react-native-incomingcall' {
export function registerReceiver(): void;
export function unregisterReceiver(): void;
export function showIncomingCall(options?: Record<string, unknown>): void;
export function endCall(): void;
export function areNotificationsEnabled(): Promise<boolean>;
}

0 comments on commit 62ba768

Please sign in to comment.