8 lines
443 B
TypeScript
8 lines
443 B
TypeScript
import type { StyleFunction } from "../style/index.js";
|
|
type ComposedArg<T> = T extends Array<(arg: infer P) => any> ? P : never;
|
|
type ComposedOwnerState<T> = ComposedArg<T>;
|
|
export type ComposedStyleFunction<T extends Array<StyleFunction<any>>> = StyleFunction<ComposedOwnerState<T>> & {
|
|
filterProps: string[];
|
|
};
|
|
declare function compose<T extends Array<StyleFunction<any>>>(...styles: T): ComposedStyleFunction<T>;
|
|
export default compose; |