@zcodeapp/interfaces
Advanced tools
| import { ICacheStrategy } from "./ICacheStrategy"; | ||
| export interface ICache { | ||
| changeStrategy(strategy: ICacheStrategy): void; | ||
| set(key: string, value: string): Promise<void>; | ||
| get(key: string): Promise<string>; | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| export interface ICacheStrategy { | ||
| set(key: string, value: string): Promise<void>; | ||
| get(key: string): Promise<string>; | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| export interface IMemoryData { | ||
| key: string; | ||
| value: string; | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| export * from "./ICacheStrategy"; | ||
| export * from "./ICache"; | ||
| export * from "./IMemoryData"; |
| "use strict"; | ||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| var desc = Object.getOwnPropertyDescriptor(m, k); | ||
| if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
| desc = { enumerable: true, get: function() { return m[k]; } }; | ||
| } | ||
| Object.defineProperty(o, k2, desc); | ||
| }) : (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| o[k2] = m[k]; | ||
| })); | ||
| var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
| for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| __exportStar(require("./ICacheStrategy"), exports); | ||
| __exportStar(require("./ICache"), exports); | ||
| __exportStar(require("./IMemoryData"), exports); |
+1
-0
| export * from "./di"; | ||
| export * from "./logger"; | ||
| export * from "./configuration"; | ||
| export * from "./cache"; |
+1
-0
@@ -20,1 +20,2 @@ "use strict"; | ||
| __exportStar(require("./configuration"), exports); | ||
| __exportStar(require("./cache"), exports); |
+2
-2
| { | ||
| "name": "@zcodeapp/interfaces", | ||
| "version": "0.3.1", | ||
| "version": "0.3.2", | ||
| "description": "Interfaces for packages", | ||
@@ -28,3 +28,3 @@ "main": "dist/index.js", | ||
| "homepage": "https://github.com/zcodeapp/msexpandable#readme", | ||
| "gitHead": "c49c5b0d7ff15106682db0478dbf7293169f6a30", | ||
| "gitHead": "dd75fea8be136dead8849581b4664ae91b4bf273", | ||
| "devDependencies": { | ||
@@ -31,0 +31,0 @@ "@typescript-eslint/eslint-plugin": "^6.16.0", |
13035
15.1%45
21.62%276
18.97%