diff --git a/cachefactory/cachefactory-tests.ts b/cachefactory/cachefactory-tests.ts index 0c859e749d..73397dd8bf 100644 --- a/cachefactory/cachefactory-tests.ts +++ b/cachefactory/cachefactory-tests.ts @@ -1,4 +1,4 @@ -/// +/// CacheFactory.get('test'); diff --git a/cachefactory/cachefactory.d.ts b/cachefactory/index.d.ts similarity index 98% rename from cachefactory/cachefactory.d.ts rename to cachefactory/index.d.ts index ac416e6837..658a2660f4 100644 --- a/cachefactory/cachefactory.d.ts +++ b/cachefactory/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Vaggelis Mparmpas , Daniel Massa // 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; -} \ No newline at end of file +declare const CacheFactory: CacheFactory.ICacheFactory; +export = CacheFactory; +export as namespace CacheFactory; diff --git a/cachefactory/tsconfig.json b/cachefactory/tsconfig.json new file mode 100644 index 0000000000..41bb03d433 --- /dev/null +++ b/cachefactory/tsconfig.json @@ -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" + ] +} \ No newline at end of file