Skip to content

Commit 814a8d0

Browse files
fix(node): missing quotes
1 parent 510e2d0 commit 814a8d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/web/src/sdk.ts.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class {{ spec.title | caseUcfirst }} {
180180
{{ method.name | caseCamel }}: {% if method.type != "location" and method.type != 'webAuth'%}async <T extends unknown>{% endif %}({% for parameter in method.parameters.all %}{{ parameter.name | caseCamel }}{% if not parameter.required %}?{% endif %}: {{ parameter.type | typeName }}{% if not loop.last %}, {% endif %}{% endfor %}): {% if method.type == 'webAuth' %}void | URL{% elseif method.type == 'location' %}URL{% else %}Promise<T>{% endif %} => {
181181
{% for parameter in method.parameters.all %}
182182
{% if parameter.required %}
183-
if (typeof {{ parameter.name | caseCamel }} === undefined) {
183+
if (typeof {{ parameter.name | caseCamel }} === 'undefined') {
184184
throw new {{spec.title | caseUcfirst}}Exception('Missing required parameter: "{{ parameter.name | caseCamel }}"');
185185
}
186186

0 commit comments

Comments
 (0)