@qiwi/substrate-types
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -0,1 +1,8 @@ | ||
# [@qiwi/substrate-types-v1.2.0](https://github.com/qiwi/substrate/compare/v1.1.1...v1.2.0) (2019-02-11) | ||
### Features | ||
* add IEventEmitter ([35eb58f](https://github.com/qiwi/substrate/commit/35eb58f)), closes [#7](https://github.com/qiwi/substrate/issues/7) | ||
# [@qiwi/substrate-types-v1.1.1](https://github.com/qiwi/substrate/compare/v1.1.0...v1.1.1) (2019-01-30) | ||
@@ -2,0 +9,0 @@ |
import { IStringMap } from './IStringMap'; | ||
export { IStringMap }; | ||
import { IEventEmitter } from './IEventEmitter'; | ||
export { IStringMap, IEventEmitter }; |
import { IStringMap } from './IStringMap'; | ||
export { IStringMap }; | ||
import { IEventEmitter } from './IEventEmitter'; | ||
export { IStringMap, IEventEmitter }; |
import { IStringMap } from './IStringMap' | ||
import { IEventEmitter } from './IEventEmitter'; | ||
export { IStringMap } | ||
export { | ||
IStringMap, | ||
IEventEmitter | ||
} |
{ | ||
"name": "@qiwi/substrate-types", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"main": "lib/es5/index.js", | ||
@@ -5,0 +5,0 @@ "types": "typings/index.d.ts", |
@@ -0,1 +1,11 @@ | ||
declare module '@qiwi/substrate-types/lib/es5/IEventEmitter' { | ||
type IEventListener = (...args: any[]) => void; type IEmitterMethod = (type: string, listener: IEventListener) => void; | ||
interface IEventEmitter { | ||
emit(type: string, ...args: any[]): void; | ||
off: IEmitterMethod; | ||
on: IEmitterMethod; | ||
once: IEmitterMethod; | ||
} | ||
export { IEmitterMethod, IEventEmitter, IEventListener }; | ||
} | ||
declare module '@qiwi/substrate-types/lib/es5/IStringMap' { | ||
@@ -9,3 +19,4 @@ type IStringMap = { | ||
import { IStringMap } from '@qiwi/substrate-types/lib/es5/IStringMap'; | ||
export { IStringMap }; | ||
import { IEventEmitter } from '@qiwi/substrate-types/lib/es5/IEventEmitter'; | ||
export { IStringMap, IEventEmitter }; | ||
} | ||
@@ -12,0 +23,0 @@ declare module '@qiwi/substrate-types' { |
@@ -9,2 +9,15 @@ /** | ||
declare module "@qiwi/substrate-types/lib/es5/IEventEmitter" { | ||
declare type IEventListener = (...args: any[]) => void; | ||
declare type IEmitterMethod = ( | ||
type: string, | ||
listener: IEventListener | ||
) => void; | ||
declare interface IEventEmitter { | ||
emit(type: string, ...args: any[]): void; | ||
off: IEmitterMethod; | ||
on: IEmitterMethod; | ||
once: IEmitterMethod; | ||
} | ||
} | ||
declare module "@qiwi/substrate-types/lib/es5/IStringMap" { | ||
@@ -16,2 +29,4 @@ declare type IStringMap = { | ||
declare module "@qiwi/substrate-types/lib/es5/index" { | ||
import type { IEventEmitter } from "@qiwi/substrate-types/lib/es5/IEventEmitter" | ||
import type { IStringMap } from "@qiwi/substrate-types/lib/es5/IStringMap" | ||
@@ -18,0 +33,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
7712
26
117