diff --git a/packages/typewind/src/index.ts b/packages/typewind/src/index.ts index 68537a6..e628754 100644 --- a/packages/typewind/src/index.ts +++ b/packages/typewind/src/index.ts @@ -1 +1,6 @@ -export declare const tw: unknown; +declare const typewind: unique symbol; + +// make brand/opaque type so that typescript lsp shows error as TypewindError and not Message +type TypewindError = { [typewind]: T }; + +export declare const tw: TypewindError<"Typewind's types haven't been generated. Run `npx typewind generate` or follow the docs at https://typewind.vercel.app/docs/installation">;