You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by dg...@apache.org on 2020/10/29 15:29:25 UTC

[openwhisk-client-js] branch master updated: fix: relax Kind typings (#215)

This is an automated email from the ASF dual-hosted git repository.

dgrove pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-client-js.git


The following commit(s) were added to refs/heads/master by this push:
     new 3a03399  fix: relax Kind typings (#215)
3a03399 is described below

commit 3a033990cbbad40cc46ce65a3b7a5a96d2977146
Author: Nick Mitchell <st...@users.noreply.github.com>
AuthorDate: Thu Oct 29 11:29:13 2020 -0400

    fix: relax Kind typings (#215)
    
    This PR relaxes the Kind type from a hard-coded (and way out-of-date) type disjunction into a plain string type... rather than trying to keep this module in sync with ... upstream openwhisk but also with whatever manifest a particular provider may have imposed
    
    Fixes #214
---
 lib/main.d.ts | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/lib/main.d.ts b/lib/main.d.ts
index cb13f36..b843190 100644
--- a/lib/main.d.ts
+++ b/lib/main.d.ts
@@ -256,20 +256,7 @@ declare namespace openwhisk {
         components: string[];
     }
 
-    type Kind =
-        "" |
-        "java" |
-        "nodejs:default" |
-        "nodejs:6" |
-        "nodejs:8" |
-        "python:default" |
-        "python:3" |
-        "python:2" |
-        "swift:default" |
-        "swift:3.1.1" |
-        "swift:4.1" |
-        "php:default" |
-        "php:7.1";
+    type Kind = string;
 
     interface Limits {
         timeout?: number;