Repository navigation
- Add TypeScript type definitions (
dist/index.d.ts), generated from the now TypeScript source insrc/index.ts. The compiled JavaScript output is unchanged. - Only publish
dist/(plus the README, LICENSE andpackage.json) to npm, instead of also includingsrc/,test/and the TypeScript configs.
No runtime changes: the compiled JavaScript is the same as 2.4.2. TypeScript projects now get type checking on request params, which may flag values News API doesn't accept; see the README's TypeScript section for how to cast if needed.
TypeScript support contributed by @angelxmoreno in #54 (merged as #55). Thank you!