Skip to content

Commit

Permalink
chore: show error msg instead of unknown type
Browse files Browse the repository at this point in the history
  • Loading branch information
Mokshit06 committed Feb 21, 2023
1 parent c14123b commit 5ec307b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/typewind/src/index.ts
Original file line number Diff line number Diff line change
@@ -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<Message> and not Message
type TypewindError<T> = { [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">;

1 comment on commit 5ec307b

@vercel
Copy link

@vercel vercel bot commented on 5ec307b Feb 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

typewind – ./

typewind.vercel.app
typewind-git-main-typewind.vercel.app
typewind-typewind.vercel.app

Please # to comment.