@qiwi/substrate-types
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -0,1 +1,8 @@ | ||
# [@qiwi/substrate-types-v1.3.0](https://github.com/qiwi/substrate/compare/v1.2.0...v1.3.0) (2019-02-13) | ||
### Features | ||
* add ILogger ([2e5373e](https://github.com/qiwi/substrate/commit/2e5373e)), closes [#2](https://github.com/qiwi/substrate/issues/2) | ||
# [@qiwi/substrate-types-v1.2.0](https://github.com/qiwi/substrate/compare/v1.1.1...v1.2.0) (2019-02-11) | ||
@@ -2,0 +9,0 @@ |
import { IStringMap } from './IStringMap'; | ||
import { IEventEmitter } from './IEventEmitter'; | ||
export { IStringMap, IEventEmitter }; | ||
import { ILogger, TLogLevel, ILoggerMethod } from './ILogger'; | ||
export { IStringMap, IEventEmitter, ILogger, ILoggerMethod, TLogLevel }; |
import { IStringMap } from './IStringMap'; | ||
import { IEventEmitter } from './IEventEmitter'; | ||
export { IStringMap, IEventEmitter }; | ||
import { ILogger, TLogLevel, ILoggerMethod } from './ILogger'; | ||
export { IStringMap, IEventEmitter, ILogger, ILoggerMethod, TLogLevel }; |
import { IStringMap } from './IStringMap' | ||
import { IEventEmitter } from './IEventEmitter'; | ||
import { ILogger, TLogLevel, ILoggerMethod } from './ILogger'; | ||
export { | ||
IStringMap, | ||
IEventEmitter | ||
IEventEmitter, | ||
ILogger, | ||
ILoggerMethod, | ||
TLogLevel | ||
} |
{ | ||
"name": "@qiwi/substrate-types", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"main": "lib/es5/index.js", | ||
@@ -5,0 +5,0 @@ "types": "typings/index.d.ts", |
@@ -11,2 +11,17 @@ declare module '@qiwi/substrate-types/lib/es5/IEventEmitter' { | ||
} | ||
declare module '@qiwi/substrate-types/lib/es5/ILogger' { | ||
type ILoggerMethod = (...args: any[]) => undefined | null; type TLogLevel = number; | ||
interface ILogger { | ||
trace: ILoggerMethod; | ||
debug: ILoggerMethod; | ||
info: ILoggerMethod; | ||
log: ILoggerMethod; | ||
warn: ILoggerMethod; | ||
error: ILoggerMethod; | ||
fatal?: ILoggerMethod; | ||
[key: string]: any; | ||
[key: number]: any; | ||
} | ||
export { ILoggerMethod, TLogLevel, ILogger }; | ||
} | ||
declare module '@qiwi/substrate-types/lib/es5/IStringMap' { | ||
@@ -21,3 +36,4 @@ type IStringMap = { | ||
import { IEventEmitter } from '@qiwi/substrate-types/lib/es5/IEventEmitter'; | ||
export { IStringMap, IEventEmitter }; | ||
import { ILogger, TLogLevel, ILoggerMethod } from '@qiwi/substrate-types/lib/es5/ILogger'; | ||
export { IStringMap, IEventEmitter, ILogger, ILoggerMethod, TLogLevel }; | ||
} | ||
@@ -24,0 +40,0 @@ declare module '@qiwi/substrate-types' { |
@@ -22,2 +22,17 @@ /** | ||
} | ||
declare module "@qiwi/substrate-types/lib/es5/ILogger" { | ||
declare type ILoggerMethod = (...args: any[]) => void | null; | ||
declare type TLogLevel = number; | ||
declare interface ILogger { | ||
trace: ILoggerMethod; | ||
debug: ILoggerMethod; | ||
info: ILoggerMethod; | ||
log: ILoggerMethod; | ||
warn: ILoggerMethod; | ||
error: ILoggerMethod; | ||
fatal?: ILoggerMethod; | ||
[key: string]: any; | ||
[key: number]: any; | ||
} | ||
} | ||
declare module "@qiwi/substrate-types/lib/es5/IStringMap" { | ||
@@ -29,2 +44,4 @@ declare type IStringMap = { | ||
declare module "@qiwi/substrate-types/lib/es5/index" { | ||
import type { ILogger, TLogLevel, ILoggerMethod } from "@qiwi/substrate-types/lib/es5/ILogger" | ||
import type { IEventEmitter } from "@qiwi/substrate-types/lib/es5/IEventEmitter" | ||
@@ -31,0 +48,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11101
33
206