mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
Change promise() return type.
This commit is contained in:
4
types/frisby/index.d.ts
vendored
4
types/frisby/index.d.ts
vendored
@@ -7,7 +7,7 @@
|
||||
/// <reference types='jasmine'/>
|
||||
|
||||
// #region Imports
|
||||
import { Response } from 'node-fetch'; // Import all definitions from node-fetch.
|
||||
export import nodeFetch = require('node-fetch'); // Import all definitions from node-fetch.
|
||||
//#endregion
|
||||
|
||||
// #region Joi Methods
|
||||
@@ -38,7 +38,7 @@ export class FrisbySpec {
|
||||
inspectStatus(): FrisbySpec;
|
||||
patch(url: string, params: {}): FrisbySpec;
|
||||
post(url: string, params: {}): FrisbySpec;
|
||||
promise(): Promise<Response>;
|
||||
promise(): Promise<nodeFetch.Response>;
|
||||
put(url: string, params: {}): FrisbySpec;
|
||||
setup(opts: {}, replace: boolean): FrisbySpec;
|
||||
then(onFulfilled: {} | ((...args: any[]) => void), onRejected: (...args: any[]) => void): FrisbySpec;
|
||||
|
||||
Reference in New Issue
Block a user