Skip to content

Commit

Permalink
fix(nfs): Optional arguments for records like textRecord (#2605)
Browse files Browse the repository at this point in the history
fix(nfs): Optional arguments for records like textRecord
  • Loading branch information
Dominik Geng authored and danielsogl committed Jul 24, 2018
1 parent 0f84249 commit b635ba9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/@ionic-native/plugins/nfc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,13 @@ export class Ndef extends IonicNativePlugin {
record(tnf: number, type: number[] | string, id: number[] | string, payload: number[] | string): NdefRecord { return; }

@Cordova({ sync: true })
textRecord(text: string, languageCode: string, id: number[] | string): NdefRecord { return; }
textRecord(text: string, languageCode?: string, id?: number[] | string): NdefRecord { return; }

@Cordova({ sync: true })
uriRecord(uri: string, id: number[] | string): NdefRecord { return; }
uriRecord(uri: string, id?: number[] | string): NdefRecord { return; }

@Cordova({ sync: true })
absoluteUriRecord(uri: string, payload: number[] | string, id: number[] | string): NdefRecord { return; }
absoluteUriRecord(uri: string, payload: number[] | string, id?: number[] | string): NdefRecord { return; }

@Cordova({ sync: true })
mimeMediaRecord(mimeType: string, payload: string): NdefRecord { return; }
Expand Down

0 comments on commit b635ba9

Please sign in to comment.