Skip to content

Commit

Permalink
types: fix rules type
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Sep 15, 2024
1 parent 94cd3cb commit 8188b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/varlet-ui/types/varComponent.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type ListenerProp<F> = F | F[]

export type Rule = Record<string, any> | ((v: any) => any)

export type Rules = Rule[]
export type Rules = Rule | Rule[]

export interface BasicAttributes {
class?: string | Record<string, any>
Expand Down

0 comments on commit 8188b84

Please sign in to comment.