mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
fix cachefactory
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/// <reference path="cachefactory.d.ts" />
|
||||
/// <reference types="cachefactory" />
|
||||
|
||||
CacheFactory.get('test');
|
||||
|
||||
|
||||
@@ -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;
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user