Skip to content

Commit

Permalink
feat: export definePreset
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 9, 2023
1 parent 8e9dc95 commit 58fe046
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/unocss/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { UserConfig } from '@unocss/core'
import type { Preset, UserConfig } from '@unocss/core'
import type { Theme as PresetUnoTheme } from '@unocss/preset-uno'

export * from '@unocss/core'
Expand All @@ -18,3 +18,7 @@ export { default as transformerAttributifyJsx } from '@unocss/transformer-attrib
export function defineConfig<Theme extends {} = PresetUnoTheme>(config: UserConfig<Theme>) {
return config
}

export function definePreset<Theme extends {} = {}>(preset: Preset<Theme>) {
return preset
}

0 comments on commit 58fe046

Please sign in to comment.