Add return type declaration to typescript-fetch runtime (#2466)

* Add return type declaration to typescript-fetch runtime

closes #2461

* Regenerate samples
This commit is contained in:
Jan Buchar 2019-03-22 07:42:31 +01:00 committed by William Cheng
parent e3716262e5
commit db1b63780d
5 changed files with 5 additions and 5 deletions

View File

@ -183,7 +183,7 @@ export function exists(json: any, key: string) {
return value !== null && value !== undefined;
}
export function querystring(params: HTTPQuery, prefix: string = '') {
export function querystring(params: HTTPQuery, prefix: string = ''): string {
return Object.keys(params)
.map((key) => {
const fullKey = prefix + (prefix.length ? `[${key}]` : key);

View File

@ -194,7 +194,7 @@ export function exists(json: any, key: string) {
return value !== null && value !== undefined;
}
export function querystring(params: HTTPQuery, prefix: string = '') {
export function querystring(params: HTTPQuery, prefix: string = ''): string {
return Object.keys(params)
.map((key) => {
const fullKey = prefix + (prefix.length ? `[${key}]` : key);

View File

@ -194,7 +194,7 @@ export function exists(json: any, key: string) {
return value !== null && value !== undefined;
}
export function querystring(params: HTTPQuery, prefix: string = '') {
export function querystring(params: HTTPQuery, prefix: string = ''): string {
return Object.keys(params)
.map((key) => {
const fullKey = prefix + (prefix.length ? `[${key}]` : key);

View File

@ -194,7 +194,7 @@ export function exists(json: any, key: string) {
return value !== null && value !== undefined;
}
export function querystring(params: HTTPQuery, prefix: string = '') {
export function querystring(params: HTTPQuery, prefix: string = ''): string {
return Object.keys(params)
.map((key) => {
const fullKey = prefix + (prefix.length ? `[${key}]` : key);

View File

@ -194,7 +194,7 @@ export function exists(json: any, key: string) {
return value !== null && value !== undefined;
}
export function querystring(params: HTTPQuery, prefix: string = '') {
export function querystring(params: HTTPQuery, prefix: string = ''): string {
return Object.keys(params)
.map((key) => {
const fullKey = prefix + (prefix.length ? `[${key}]` : key);