From 106d2879ce282eecce6ecb086f8232f33c3e2b15 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 6 Apr 2022 23:05:29 +0200 Subject: [PATCH] update(types): Allow void return for styles/class func --- package/src/types/flow.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/src/types/flow.ts b/package/src/types/flow.ts index ecde07b5..13268c1d 100644 --- a/package/src/types/flow.ts +++ b/package/src/types/flow.ts @@ -21,8 +21,8 @@ export type CSSVars = | '--vf-handle' export type ThemeVars = { [key in CSSVars]?: CSSProperties['color'] } export type Styles = CSSProperties & ThemeVars & CustomThemeVars -export type ClassFunc = (element: FlowElement) => string -export type StyleFunc = (element: FlowElement) => Styles +export type ClassFunc = (element: FlowElement) => string | void +export type StyleFunc = (element: FlowElement) => Styles | void /** base element props */ export interface Element {