Skip to content

Commit

Permalink
refactor: set default generic type for createTheme function
Browse files Browse the repository at this point in the history
  • Loading branch information
SutuSebastian committed Jan 18, 2025
1 parent 3941193 commit edd4514
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ui/src/helpers/create-theme.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { CustomFlowbiteTheme } from "../components/Flowbite/FlowbiteTheme";

/**
* Used to apply `tailwindcss` intellisense.
*/
export function createTheme<T>(input: T) {
export function createTheme<T = CustomFlowbiteTheme>(input: T) {
return input;
}

0 comments on commit edd4514

Please sign in to comment.