Skip to content

Commit

Permalink
refactor: Switch from PromisesAPlus to core PromiseLike for Cache API
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Apr 12, 2016
1 parent acb776e commit eef8158
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 24 deletions.
2 changes: 1 addition & 1 deletion lib/Cache.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export interface Cache {
set<T>(key: string, value: T): void;
get<T>(key: string): PromisesAPlus.Thenable<T>;
get<T>(key: string): PromiseLike<T>;
clear(key: string): void
}
3 changes: 1 addition & 2 deletions typings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
},
"ambientDependencies": {
"es6-promise": "registry:dt/es6-promise#0.0.0+20160317120654",
"node": "registry:dt/node#4.0.0+20160330064709",
"promises-a-plus": "registry:dt/promises-a-plus#0.0.0+20160317120654"
"node": "registry:dt/node#4.0.0+20160330064709"
},
"devDependencies": {
"chai": "registry:npm/chai#3.5.0+20160402210230",
Expand Down
1 change: 0 additions & 1 deletion typings/main.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/// <reference path="main/ambient/es6-promise/index.d.ts" />
/// <reference path="main/ambient/mocha/index.d.ts" />
/// <reference path="main/ambient/node/index.d.ts" />
/// <reference path="main/ambient/promises-a-plus/index.d.ts" />
/// <reference path="main/definitions/bluebird/index.d.ts" />
/// <reference path="main/definitions/chai-as-promised/index.d.ts" />
/// <reference path="main/definitions/chai/index.d.ts" />
Expand Down
20 changes: 0 additions & 20 deletions typings/main/ambient/promises-a-plus/index.d.ts

This file was deleted.

0 comments on commit eef8158

Please sign in to comment.