Skip to content

Commit

Permalink
fix: add callback type null possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Frans-L committed Jan 4, 2020
1 parent 6fc257e commit 1371533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ declare module 'react-native-nfc-manager' {

unregisterTagEvent(): Promise<void>;

setEventListener(name: NfcEvents, callback: OnNfcEvents): void;
setEventListener(name: NfcEvents, callback: OnNfcEvents | null): void;

requestTechnology: (tech: NfcTech) => Promise<NfcTech>;

Expand Down

0 comments on commit 1371533

Please sign in to comment.