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
You added some kind of types in 7444207 but they don't seem to be available when using this module from TypeScript.
error TS7016: Could not find a declaration file for module 'microdata-node'. 'node_modules/microdata-node/src/index.js' implicitly has an 'any' type.
Try `npm install @types/microdata-node` if it exists or add a new declaration (.d.ts) file containing `declare module 'microdata-node';`
Can you try to enable checkJs in your tsconfig.json? For now the types are strictly internal, I'm not sure I want to introduce a build step at this point.
Looks like config is incorrectly defined as required parameter to toJson. It's optional in README.
scripts/run.ts:21:39 - error TS2554: Expected 2 arguments, but got 1.
21 require('util').inspect(microdata.toJson(html), {
~~~~~~~~~~~~~~~~~~
node_modules/microdata-node/src/index.js:59:33
59 function toJson (microdataHtml, config) {
~~~~~~
An argument for 'config' was not provided.
Activity
Janpot commentedon Jul 8, 2020
Can you try to enable
checkJsin yourtsconfig.json? For now the types are strictly internal, I'm not sure I want to introduce a build step at this point.raine commentedon Jul 8, 2020
No effect. I wonder if that setting applies only to project files and not dependencies.
raine commentedon Jul 8, 2020
This worked:
Looks like
configis incorrectly defined as required parameter totoJson. It's optional in README.