Merge pull request #29041 from qvxqvx/jss-plugin-type-correction

[jss] Correction to JSSPlugin definition
This commit is contained in:
Jesse Trinity
2018-09-20 15:01:08 -07:00
committed by GitHub

View File

@@ -77,7 +77,7 @@ export interface StyleSheet<RuleName extends string = any> {
export type GenerateClassName<Name extends string = any> = (rule: Rule, sheet?: StyleSheet<Name>) => string;
export interface JSSPlugin {
[key: string]: () => Partial<{
[key: string]: Partial<{
onCreateRule(name: string, style: Style, options: RuleOptions): Rule;
onProcessRule(rule: Rule, sheet: StyleSheet): void;
onProcessStyle(style: Style, rule: Rule, sheet: StyleSheet): Style;