DrewML commented on issue #200: Error occurrs in typescript project URL: https://github.com/apache/openwhisk-client-js/issues/200#issuecomment-589854591 @machenity ran into this today as well. A simple fix for your project is to include `@types/swagger-schema-official` as a `devDependencies` entry in your project's `package.json`, but that's more of a hack since you're putting a direct dependency on what's really a transitive dependency - versioning could get weird. For projects that publish external type definitions (like `openwhisk-client-js`), it's typically recommended to publish definitions through [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped), since that project's build process will generate a `package.json` with proper dependencies based on `import` declarations. So `@types/openwhisk-client-js` would have a dependency on `@types/swagger-schema-official`. If the authors of this project want to keep the `d.ts` file in this repo, the fix would be putting a hard dependency on `@types/swagger-schema-official`, the downside being that non-TS users will all have a superfluous dependency on disk.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
