From eada92f19ff62aec946086c2cee1edfee005e37d Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 30 Jan 2019 16:12:03 -0500 Subject: [PATCH] fix genarato api-index template --- src/generator/templates/api-index.njk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generator/templates/api-index.njk b/src/generator/templates/api-index.njk index 1ba6a50636..3432482d24 100644 --- a/src/generator/templates/api-index.njk +++ b/src/generator/templates/api-index.njk @@ -26,10 +26,10 @@ export const VERSIONS = { {% for versionName, version in api %} {% set Version = version|replace('.','_') %} - export function {{ name }}(version: '{{ Version }}'): {{ name }}_{{ Version }}.{{ name|capitalize }}; + export function {{ name }}(version: '{{ version }}'): {{ name }}_{{ Version }}.{{ name|capitalize }}; export function {{ name }}(options: {{ name }}_{{ Version }}.Options): {{ name }}_{{ Version }}.{{ name|capitalize }}; {% endfor %} -export function {{ name }}(this: GoogleConfigurable, versionOrOptions: {% for versionName, version in api %}'{{ version|replace('.','_') }}'|{{ name }}_{{ version|replace('.','_') }}.Options{% if not loop.last %}|{% endif %}{% endfor %}) { +export function {{ name }}(this: GoogleConfigurable, versionOrOptions: {% for versionName, version in api %}'{{ version }}'|{{ name }}_{{ version|replace('.','_') }}.Options{% if not loop.last %}|{% endif %}{% endfor %}) { return getAPI('{{ name }}', versionOrOptions, VERSIONS, this); }