fix cachefactory

This commit is contained in:
Paul van Brenk
2016-08-19 17:29:39 -07:00
parent 73e22e9b8e
commit 8dce5bde7d
3 changed files with 24 additions and 7 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/// <reference path="cachefactory.d.ts" />
/// <reference types="cachefactory" />
CacheFactory.get('test');
+4 -6
View File
@@ -3,7 +3,7 @@
// Definitions by: Vaggelis Mparmpas <https://github.com/vag1830>, Daniel Massa <https://github.com/danielmassa>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module CacheFactory {
declare namespace CacheFactory {
export interface IStoreImplementation {
getItem(key: string): string;
@@ -436,8 +436,6 @@ declare module CacheFactory {
}
}
declare var CacheFactory: CacheFactory.ICacheFactory;
declare module "cachefactory" {
export = CacheFactory;
}
declare const CacheFactory: CacheFactory.ICacheFactory;
export = CacheFactory;
export as namespace CacheFactory;
+19
View File
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"cachefactory-tests.ts"
]
}