Skip to content
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

docs(csv): more examples for parse and CsvParseStream #5605

Merged
merged 16 commits into from
Aug 2, 2024
Merged
Prev Previous commit
Next Next commit
link to MDN for SyntaxError
  • Loading branch information
magurotuna committed Aug 1, 2024
commit bfe0837e91961856df54e22238eba1d16a1987a5
3 changes: 2 additions & 1 deletion csv/_io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export interface ReadOptions {
* If negative, no check is made and records may have a variable number of
* fields.
*
* If the wrong number of fields is in a row, a `ParseError` is thrown.
* If the wrong number of fields is in a row, a {@linkcode https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError | SyntaxError}
* is thrown.
*/
fieldsPerRecord?: number;
}
Expand Down
4 changes: 2 additions & 2 deletions csv/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ export interface ParseOptions {
* If negative, no check is made and records may have a variable number of
* fields.
*
* If the wrong number of fields is in a row, a {@linkcode SyntaxError} is
* thrown.
* If the wrong number of fields is in a row, a {@linkcode https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError | SyntaxError}
* is thrown.
*/
fieldsPerRecord?: number;
/**
Expand Down
4 changes: 2 additions & 2 deletions csv/parse_stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export interface CsvParseStreamOptions {
* If negative, no check is made and records may have a variable number of
* fields.
*
* If the wrong number of fields is in a row, a {@linkcode ParseError} is
* thrown.
* If the wrong number of fields is in a row, a {@linkcode https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError | SyntaxError}
* is thrown.
*/
fieldsPerRecord?: number;
/**
Expand Down