mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 18:25:24 +00:00
Added comment for nfc method
This commit is contained in:
8
index.js
8
index.js
@@ -399,6 +399,14 @@ class Pass {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets nfc fields in properties
|
||||||
|
*
|
||||||
|
* @method nfc
|
||||||
|
* @params {Array<Object>} data - the data to be pushed in the pass
|
||||||
|
* @returns {this}
|
||||||
|
*/
|
||||||
|
|
||||||
nfc(...data) {
|
nfc(...data) {
|
||||||
if (data.length === 1 && data[0] instanceof Array) {
|
if (data.length === 1 && data[0] instanceof Array) {
|
||||||
data = data[0];
|
data = data[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user