inhabit-module-base
Advanced tools
Comparing version 2.0.1 to 2.0.2-alpha.0
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="2.0.2-alpha.0"></a> | ||
## [2.0.2-alpha.0](https://github.com/ArkadiumInc/node-inhabit-module-base/compare/v2.0.1...v2.0.2-alpha.0) (2019-03-11) | ||
### Bug Fixes | ||
* **API:** Add betting-module ([a7247aa](https://github.com/ArkadiumInc/node-inhabit-module-base/commit/a7247aa)) | ||
<a name="2.0.1"></a> | ||
@@ -7,0 +17,0 @@ ## [2.0.1](https://github.com/ArkadiumInc/node-inhabit-module-base/compare/v2.0.0...v2.0.1) (2018-12-14) |
{ | ||
"name": "inhabit-module-base", | ||
"version": "2.0.1", | ||
"version": "2.0.2-alpha.0", | ||
"description": "A Base Module class for InHabit.", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -7,3 +7,4 @@ // Generated by dts-bundle v0.7.3 | ||
export class BettingModule implements IBettingModule { | ||
render(container: HTMLElement, config: IBettingConfig): void; | ||
initialize(container: HTMLElement, config: IBettingConfig): void; | ||
show(): Promise<void>; | ||
} | ||
@@ -16,12 +17,16 @@ } | ||
debug: boolean; | ||
maxWidth: number; | ||
locale: string; | ||
assetsUrl: string; | ||
teams: string[]; | ||
colors: ITeamColor[]; | ||
teams: ITeam[]; | ||
analytics: IAnalytics; | ||
preferredBookmakers: IBookmaker[]; | ||
} | ||
export interface ITeamColor { | ||
teamId: string; | ||
export interface ITeam { | ||
id: string; | ||
colors: string[]; | ||
} | ||
export interface IBookmaker { | ||
id: string; | ||
referId: string; | ||
} | ||
} | ||
@@ -32,3 +37,4 @@ | ||
export interface IBettingModule { | ||
render(container: HTMLElement, config: IBettingConfig): void; | ||
initialize(container: HTMLElement, config: IBettingConfig): void; | ||
show(): Promise<void>; | ||
} | ||
@@ -35,0 +41,0 @@ } |
@@ -6,6 +6,9 @@ type SecondArgument<T> = T extends (arg1: any, arg2: infer U, ...args: any[]) => any ? U : any; | ||
import { BettingModule } from "betting"; | ||
type BettingRender = typeof BettingModule.prototype.render; | ||
type Options<T> = T extends { initialize: (arg1: any, arg2: infer U) => any } ? U : never; | ||
type BettingOpts = Options<BettingModule>; | ||
type BettingInit = typeof BettingModule.prototype.initialize; | ||
export interface IExtensions { | ||
betting(cfg: SecondArgument<BettingRender>): void; | ||
betting(cfg: Options<BettingModule>): Promise<BettingModule>; | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
339
113030
24
3