-
Notifications
You must be signed in to change notification settings - Fork 360
visual studio code show error #112
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
Comments
Feel free to submit a PR, I don't use TS. |
Using I changed the typescript definition to the following: declare namespace json2csv {
interface CSVCallback {
(error: Error, csv: string): void;
}
export function json2csv(options: any, callback: CSVCallback): string;
}
export = json2csv.json2csv; I will prepare a pull request and try to validate if this the current state of the are type definition format. |
In which version will this fix be available? |
It is now released as 3.4.1 |
@knownasilya thanks :) |
Has anyone been able to use this with TS? Would be great to add a section in the docs for ts for a minimal example. |
Feel free to pioneer this, and I'll review your PR. |
I found a stopgap,but not using this repo, atm I'm snowed under with work |
[js] Exported external package typings file '.../node_modules/json2csv/index.d.ts' is not a module. Please contact the package author to update the package definition.
The text was updated successfully, but these errors were encountered: