Closed navaru closed 11 months ago
@navaru The type error shows what you're doing wrong.
Oh, ma' bad, I misunderstood. I thought it should with multiple entries. I will use the type instead. Thanks!
import type { UtilityConfig } from "@pandacss/types"
import { defineUtility } from "@pandacss/dev"
const utilities: UtilityConfig = {
// multiple entries
}
const someUtility = defineUtility({
// single entry
})
Description
When trying to define a custom utility using
defineUtility
it shows a TS error:I'm using
defineUtility
to create a preset.Link to Reproduction
https://play.panda-css.com/eS03NVeLOh
Steps to reproduce
Check the Config tab in the playground
Panda CSS Version
0.19.0