Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/famous-icons-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"nativewind": patch
---

Fix empty TypeScript declarations for nativewind/preset
6 changes: 4 additions & 2 deletions packages/nativewind/src/tailwind/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = Object.assign(
const preset = Object.assign(
() => {
// Check if this file is being loaded by an editor with Tailwind CSS IntelliSense (e.g., VS Code).
// If so, load the `native` part so that features implemented in `native` (like `p-safe`) can be auto-completed in the editor.
Expand All @@ -10,6 +10,8 @@ module.exports = Object.assign(
: require("./native").default;
},
{
nativewind: true,
nativewind: true as const,
},
);

export = preset;