@zcodeapp-packages/interfaces
Advanced tools
| import { TConstructor } from "."; | ||
| export interface IDi { | ||
| register<T, Args extends any[] = any[]>(key: TConstructor<T, Args>, isSingleton?: boolean, args?: Args): void; | ||
| register<T, Args extends any = any>(key: string, isSingleton: boolean, args?: any): void; | ||
| get<T, Args extends any[] = any[]>(key: TConstructor<T, Args> | string): T; | ||
| } |
| export interface IInjectableOptions<T extends any[] = any[]> { | ||
| singleton: boolean; | ||
| args: T; | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| export * from "./IDi"; | ||
| export * from "./TConstructor"; | ||
| export * from "./IInjectableOptions"; |
| "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("./IDi"), exports); | ||
| __exportStar(require("./TConstructor"), exports); | ||
| __exportStar(require("./IInjectableOptions"), exports); |
| export type TConstructor<T, Args extends any[] = any[]> = new (...args: Args) => T; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| import { TConstructor } from "."; | ||
| export interface IDi { | ||
| register<T, Args extends any[] = any[]>(key: TConstructor<T, Args>, isSingleton?: boolean, args?: Args): void; | ||
| register<T, Args extends any = any>(key: string, isSingleton: boolean, args?: any): void; | ||
| get<T, Args extends any[] = any[]>(key: TConstructor<T, Args> | string): T; | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| export interface IInjectableOptions<T extends any[] = any[]> { | ||
| singleton: boolean; | ||
| args: T; | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| export interface IInjectableOptions<T extends any[] = any[]> { | ||
| singleton: boolean, | ||
| args: T | ||
| } |
| export * from "./IDi"; | ||
| export * from "./TConstructor"; | ||
| export * from "./IInjectableOptions"; |
| "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("./IDi"), exports); | ||
| __exportStar(require("./TConstructor"), exports); | ||
| __exportStar(require("./IInjectableOptions"), exports); |
| export * from "./IDi" | ||
| export * from "./TConstructor" | ||
| export * from "./IInjectableOptions" |
| export type TConstructor<T, Args extends any[] = any[]> = new (...args: Args) => T; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| export type TConstructor<T, Args extends any[] = any[]> = new (...args: Args) => T; |
+26
-22
| { | ||
| "name": "@zcodeapp-packages/interfaces", | ||
| "version": "0.0.1", | ||
| "description": "Interfaces for packages", | ||
| "main": "src/index.ts", | ||
| "publishConfig": { | ||
| "access": "public" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+git@github.com:zcodeapp/msexpandable.git" | ||
| }, | ||
| "keywords": [ | ||
| "interfaces" | ||
| ], | ||
| "author": "Joao Moraes <joaomoraesbr@gmail.com>", | ||
| "license": "ISC", | ||
| "bugs": { | ||
| "url": "https://github.com/zcodeapp/msexpandable/issues" | ||
| }, | ||
| "homepage": "https://github.com/zcodeapp/msexpandable#readme" | ||
| } | ||
| "name": "@zcodeapp-packages/interfaces", | ||
| "version": "0.0.3", | ||
| "description": "Interfaces for packages", | ||
| "main": "dist/index.js", | ||
| "types": "dist/index.d.ts", | ||
| "scripts": { | ||
| "build": "tsc" | ||
| }, | ||
| "publishConfig": { | ||
| "access": "public" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+git@github.com:zcodeapp/msexpandable.git" | ||
| }, | ||
| "keywords": [ | ||
| "interfaces" | ||
| ], | ||
| "author": "Joao Moraes <joaomoraesbr@gmail.com>", | ||
| "license": "ISC", | ||
| "bugs": { | ||
| "url": "https://github.com/zcodeapp/msexpandable/issues" | ||
| }, | ||
| "homepage": "https://github.com/zcodeapp/msexpandable#readme", | ||
| "gitHead": "c60b13e8b35d0bb19f077c5c4d3817c0a691f00d" | ||
| } |
+5
-1
@@ -0,3 +1,7 @@ | ||
| import { TConstructor } from "." | ||
| export interface IDi { | ||
| register<T, Args extends any[] = any[]>(key: TConstructor<T, Args>, isSingleton?: boolean, args?: Args): void; | ||
| register<T, Args extends any = any>(key: string, isSingleton: boolean, args?: any): void; | ||
| get<T, Args extends any[] = any[]>(key: TConstructor<T, Args> | string): T; | ||
| } |
+10
-7
| { | ||
| "extends": "../../tsconfig.base.json", | ||
| "compilerOptions": { | ||
| "outDir": "./dist" | ||
| }, | ||
| "include": [ | ||
| "src/**/*" | ||
| ] | ||
| "extends": "../../tsconfig.base.json", | ||
| "compilerOptions": { | ||
| "outDir": "./dist" | ||
| }, | ||
| "include": [ | ||
| "src/**/*" | ||
| ], | ||
| "exclude": [ | ||
| "tests/**/*" | ||
| ] | ||
| } |
4972
496.88%23
360%99
800%