Skip to content

Commit

Permalink
feat: add export version in typescript example and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
scraly committed Aug 29, 2023
1 parent c7796bb commit 6d42325
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ let myKubeCluster = ovh.cloudproject.getKube({
serviceName: serviceName,
kubeId: "xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx"
})

export const version = myKubeCluster.then(myKubeCluster => myKubeCluster.version);
```

{{% /choosable %}}
Expand Down
2 changes: 2 additions & 0 deletions examples/ovh-typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ let myKubeCluster = ovh.cloudproject.getKube({
serviceName: serviceName,
kubeId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx"
})

export const version = myKubeCluster.then(myKubeCluster => myKubeCluster.version);

0 comments on commit 6d42325

Please sign in to comment.