react-bem-helper
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -7,3 +7,8 @@ /** | ||
declare module Bem { | ||
interface BEMHelper { | ||
(element?: string, modifiers?: BEMHelper.List, extra?: BEMHelper.List): {className: string}; | ||
(args: BEMHelper.Arguments): {className: string}; | ||
} | ||
declare namespace BEMHelper { | ||
interface PredicateList { | ||
@@ -15,3 +20,3 @@ [key: string]: boolean | (() => boolean); | ||
interface HelperArguments { | ||
interface Arguments { | ||
element?: string; | ||
@@ -23,8 +28,3 @@ modifier?: List; | ||
interface Helper { | ||
(element?: string, modifiers?: List, extra?: List): {className: string}; | ||
(args: HelperArguments): {className: string}; | ||
} | ||
interface HelperConstructorOptions { | ||
interface ConstructorOptions { | ||
name: string; | ||
@@ -35,11 +35,12 @@ prefix?: string; | ||
interface HelperConstructor { | ||
new(name: string): Helper; | ||
new(options: HelperConstructorOptions): Helper; | ||
(name: string): Helper; | ||
(options: HelperConstructorOptions): Helper; | ||
interface Constructor { | ||
new(name: string): BEMHelper; | ||
new(options: ConstructorOptions): BEMHelper; | ||
(name: string): BEMHelper; | ||
(options: ConstructorOptions): BEMHelper; | ||
} | ||
} | ||
declare var BEMHelper: Bem.HelperConstructor; | ||
declare var BEMHelper: BEMHelper.Constructor; | ||
export = BEMHelper; |
{ | ||
"name": "react-bem-helper", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "allows you to easily add BEM-style element and modifier classes to React elements, while hopefully making it easier to scan.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
71695