diff --git a/packages/jss-plugin-compose/src/index.d.ts b/packages/jss-plugin-compose/src/index.d.ts index 73ed869a3..dbfb3e78a 100644 --- a/packages/jss-plugin-compose/src/index.d.ts +++ b/packages/jss-plugin-compose/src/index.d.ts @@ -1,3 +1,7 @@ import {Plugin} from 'jss' +export type ComposeProperties = { + composes: (string | string[])[] +} + export default function jssPluginSyntaxCompose(): Plugin diff --git a/packages/jss-plugin-extend/src/index.d.ts b/packages/jss-plugin-extend/src/index.d.ts index 824e228ad..5884973e8 100644 --- a/packages/jss-plugin-extend/src/index.d.ts +++ b/packages/jss-plugin-extend/src/index.d.ts @@ -1,3 +1,7 @@ -import {Plugin} from 'jss' +import {JssStyle, Plugin} from 'jss' + +export type ExtendProperties = { + extends: (JssStyle | string)[] | JssStyle | string +} export default function jssPluginSyntaxExtend(): Plugin diff --git a/packages/jss-preset-default/src/index.d.ts b/packages/jss-preset-default/src/index.d.ts index c66064dc7..0f0c10ba0 100644 --- a/packages/jss-preset-default/src/index.d.ts +++ b/packages/jss-preset-default/src/index.d.ts @@ -1,7 +1,11 @@ import {Plugin, JssOptions} from 'jss' import {Options as DefaultUnitOptions} from 'jss-plugin-default-unit' import {Options as ObservableOptions} from 'jss-plugin-rule-value-observable' +import {ComposeProperties} from 'jss-plugin-compose' +import {ExtendProperties} from 'jss-plugin-extend' type Options = {defaultUnit?: DefaultUnitOptions; observable?: ObservableOptions} +export type AdditionalProperties = ComposeProperties & ExtendProperties + export default function jssPresetDefault(options?: Options): JssOptions diff --git a/packages/jss/src/index.d.ts b/packages/jss/src/index.d.ts index 806a99d76..a075f1524 100644 --- a/packages/jss/src/index.d.ts +++ b/packages/jss/src/index.d.ts @@ -12,33 +12,38 @@ type Func
= T extends undefined ? ((data: P) => R) : ((data: P & {theme
type NormalCssProperties = CSSProperties