@fimbul/ymir
Advanced tools
Comparing version 0.8.0 to 0.9.0-dev.20180501
{ | ||
"name": "@fimbul/ymir", | ||
"version": "0.8.0", | ||
"version": "0.9.0-dev.20180501", | ||
"description": "Core library for the Fimbullinter project", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -46,7 +46,7 @@ import 'reflect-metadata'; | ||
export declare type Severity = 'error' | 'warning'; | ||
export interface RuleConstructor { | ||
export interface RuleConstructor<T extends RuleContext = RuleContext> { | ||
readonly requiresTypeInformation: boolean; | ||
readonly deprecated?: boolean | string; | ||
supports?: RuleSupportsPredicate; | ||
new (context: RuleContext): AbstractRule; | ||
new (context: T): AbstractRule; | ||
} | ||
@@ -53,0 +53,0 @@ export interface RuleSupportsContext { |
33403