Skip to content

Commit

Permalink
feat: add and export any function type
Browse files Browse the repository at this point in the history
  • Loading branch information
lovrozagar committed Oct 14, 2024
1 parent 3cd0963 commit b0792b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/_shared/types/any-function.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* biome-ignore lint/suspicious/noExplicitAny: allow any to support generic any function */
type AnyFunction = (...args: any[]) => any

export type { AnyFunction }
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,3 +505,4 @@ export type { OrUndefined } from '@/components/_shared/types/or-undefined'
export type { Prettify } from '@/components/_shared/types/prettify'
export type { Simplify } from '@/components/_shared/types/simplify'
export type { NonNullableVariantProps as VariantProps } from '@/components/_shared/types/variant'
export type { AnyFunction } from '@/components/_shared/types/any-function'

0 comments on commit b0792b9

Please sign in to comment.