godaddy / kubernetes-client

Simplified Kubernetes API client for Node.js.
MIT License
962 stars 192 forks source link

Using .loadSpec() with Typescript #626

Open leon-developer-br opened 4 years ago

leon-developer-br commented 4 years ago

Hi,

I am using typescript and kubernetes-client in a project and is not possible to call .loadSpec().

If it is possible, what steps I have to do to generate the necessary typings?

rauno56 commented 4 years ago

.loadSpec() is currently not supported with TS. See the readme:

When using TypeScript, kubernetes-client does not support dynamically generating a client via .loadSpec().