You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewTypeError(`Invalid API version: ${apiVersion}, must be one of ${apiVersions}`);
}
It would be less error-prone if API vesions were exposed as a type (e.g. an enum or union of string types) so that they can be checked at compile-time.
The text was updated successfully, but these errors were encountered:
connor4312
changed the title
Provide the TS API version as an enumeration
Provide the API version for TS' HttpTunnelManagementClient as an enumeration
Dec 5, 2023
The valid versions of the
apiVersion
passed into theHttpTunnelManagementClient
are checked at runtime and an error is thrown if invaliddev-tunnels/ts/src/management/tunnelManagementHttpClient.ts
Lines 142 to 144 in 2f315dc
It would be less error-prone if API vesions were exposed as a type (e.g. an enum or union of string types) so that they can be checked at compile-time.
This led to some confusion in https://github.com/microsoft/vscode-remote-tunnels/pull/709#discussion_r1416362126
The text was updated successfully, but these errors were encountered: