Skip to content

Commit bffdabd

Browse files
docs: Add note about defining properties inline inside createSprinkles (#1332)
Co-authored-by: Michael Taranto <[email protected]>
1 parent 8c2ac42 commit bffdabd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

site/docs/packages/sprinkles.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,9 @@ const properties = defineProperties({
556556

557557
Creates a type-safe function for accessing your [defined properties](#defineProperties). You can provide as many collections of properties as you like.
558558

559+
> 🚧&nbsp;&nbsp;Ensure properties are defined as variables before passing them into `createSprinkles`.
560+
> Calling `defineProperties` inside a `createSprinkles` call will cause types to be inferred incorrectly, resulting in a type-unsafe sprinkles function.
561+
559562
```ts
560563
// sprinkles.css.ts
561564
import {

0 commit comments

Comments
 (0)