See microsoft/TypeScript#15363.
Currently this package publishes .ts files in the package on npmjs, so that rules like noImplicitAny get picked up when you import { ... } from "api-ai-javascript".
The recommendation is to instead publish .js files with the corresponding .d.ts files. See the link at the top of this comment for the issue thread on the TypeScript repo about this.
An example of another repo that has made this change to their TS project publishing: Goyoo/node-k8s-client#37.