You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure what the status of this is, but I'm giving Deno a first try with a simple task: manipulate a CSV. Trying to figure out the parameters for parse in WebStorm is tricky, because the options object doesn't seem to be documented (only input is), but is used in the example:
Not sure what the status of this is, but I'm giving Deno a first try with a simple task: manipulate a CSV. Trying to figure out the parameters for parse in WebStorm is tricky, because the options object doesn't seem to be documented (only input is), but is used in the example:
I'm using jsr:@std/csv@^0.224.1.
Looking at the documentation, parse has two overloads, with opt being a generic type that extends ParseOptions. Why opt isn't a Partial<ParseOptions> is unknown to me.
Re-opening this issue. It's weird that parse() is generic and could be cleaned up and documented better.
Edit: I'll keep this open until CSV documentation is reviewed as part of achieving stabilization. Then, we can see if the documentation satisfies the shortcomings pointed out here.
Activity
fdemir commentedon Apr 14, 2024
Should we remove the opt?: undefined from this overload?
dsherret commentedon Apr 14, 2024
Yeah, I think it should just be
export function parse(input: string): string[][];Wencho8 commentedon Apr 16, 2024
I can work on this. Removing the extra comments and the opt parameter.
Remove unused opt parameter (issue denoland#4545), since the other ov…
fix(csv): remove unused `opt` parameter (#4598)
iuioiua commentedon Apr 16, 2024
Completed in #4598
dandv commentedon May 25, 2024
Not sure what the status of this is, but I'm giving Deno a first try with a simple task: manipulate a CSV. Trying to figure out the parameters for
parsein WebStorm is tricky, because the options object doesn't seem to be documented (onlyinputis), but is used in the example:I'm using jsr:@std/csv@^0.224.1.
BlackAsLight commentedon May 26, 2024
Looking at the documentation, parse has two overloads, with
optbeing a generic type that extendsParseOptions. Whyoptisn't aPartial<ParseOptions>is unknown to me.iuioiua commentedon May 29, 2024
Re-opening this issue.
It's weird thatparse()is generic and could be cleaned up and documented better.Edit: I'll keep this open until CSV documentation is reviewed as part of achieving stabilization. Then, we can see if the documentation satisfies the shortcomings pointed out here.