Skip to content

Commit

Permalink
Add return type declaration to typescript-fetch runtime (#2466)
Browse files Browse the repository at this point in the history
* Add return type declaration to typescript-fetch runtime

closes #2461

* Regenerate samples
  • Loading branch information
janbuchar authored and wing328 committed Mar 22, 2019
1 parent e371626 commit db1b637
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit db1b637

Please sign in to comment.