Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
refactor: ts 2 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
KnisterPeter committed Nov 8, 2016
1 parent 0bd051e commit d5fab55
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 3,011 deletions.
3 changes: 1 addition & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
import './typings/isomorphic-fetch.d.ts';
export * from './dist/src/index.d.ts';
export * from './dist/src/index';
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
"typescript": "2.0.7"
},
"dependencies": {
"@types/chai": "3.4.34",
"@types/isomorphic-fetch": "0.0.31",
"@types/mocha": "2.2.32",
"@types/node": "6.0.46",
"isomorphic-fetch": "2.2.1",
"omni-fetch": "0.1.1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fetch from 'omni-fetch';
import { RequestInit, Response } from 'isomorphic-fetch';
import 'isomorphic-fetch';

export type IPretendDecoder = (response: Response) => Promise<any>;
export type IPretendRequest = { url: string, options: RequestInit };
Expand Down
1 change: 0 additions & 1 deletion test/index-test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { assert } from 'chai';
import * as nock from 'nock';
import { Response } from 'isomorphic-fetch';

import { Pretend, Get, Post, Put, Delete } from '../src';

Expand Down
15 changes: 0 additions & 15 deletions typings/assertion-error/assertion-error.d.ts

This file was deleted.

Loading

0 comments on commit d5fab55

Please sign in to comment.