-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation #2
Conversation
gtfs.js
Outdated
* | ||
* @param {Array<Object>} items Array of item to add to the GTFS. | ||
* @param {string} tableName Name of the table of the GTFS in which the objects should be added. | ||
* @param {Object} gtfs GTFS object in which to add the items. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't usually you want the object you are modifying to be the first instead of last? If you don't have an actual gifts object (sorry this is not really related to documentation).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol oops, this is @gcamp
gtfs.js
Outdated
/** | ||
* Table-generic function to add items in a table of a GTFS. | ||
* | ||
* @param {Array<Object>} items Array of item to add to the GTFS. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
items*
gtfs.js
Outdated
* Table-generic function to get an indexed table of a GTFS. The indexation depends of the table, and is defined in | ||
* the schema (If possible, it is the unique id). | ||
* | ||
* @param {string} tableName Name of the table of the GTFS to get. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will it work if the table name is invalid?
gtfs.js
Outdated
@@ -35,6 +43,16 @@ function addItems(items, tableName, gtfs) { | |||
} | |||
} | |||
|
|||
/** | |||
* Table-generic function to get an indexed table of a GTFS. The indexation depends of the table, and is defined in | |||
* the schema (If possible, it is the unique id). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what schema?
gtfs.js
Outdated
* Table-generic function to add items in a table of a GTFS. | ||
* | ||
* @param {Array<Object>} items Array of item to add to the GTFS. | ||
* @param {string} tableName Name of the table of the GTFS in which the objects should be added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will it work if the name of the table is not valid?
gtfs.js
Outdated
/** | ||
* Constructor of the GTFS | ||
* | ||
* @param {string} path Path to the folder contains the GTFS text files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path to the folder that contains the GTFS...?
gtfs.js
Outdated
* Constructor of the GTFS | ||
* | ||
* @param {string} path Path to the folder contains the GTFS text files. | ||
* @param {Object|undefined} regexPatternObjectsByTableName Optional ad-hoc regex to fix the tables. See importTable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to fix how? see what about importTable ?
gtfs.js
Outdated
/** | ||
* Async function exporting the GTFS at a specific path. | ||
* | ||
* @param {string} path Path to the folder which will contains the GTFS. The folder will be created if needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contain*
helpers/import.js
Outdated
* | ||
* @param {Gtfs} gtfs The GTFS in which to import the table. | ||
* @param {string} tableName The table of the name to import. | ||
* @param { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work? (does webstorm parse it / did you try to validate it against a jsdoc validator?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
webstorm does parse it, and give advices based on that. Indeed GitHub seems to not like it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfect
No description provided.