-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TypeScript types for the tailwind.config.js
file
#7891
Merged
Merged
Commits on Mar 21, 2022
-
This script will generate the full list of core plugins, which will allow you to get code completion for the `corePlugins` section. It will also generate all the colors (and deprecated colors) which is used in multiple places in the config.
Configuration menu - View commit details
-
Copy full SHA for db5fe42 - Browse repository at this point
Copy the full SHA db5fe42View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72f354b - Browse repository at this point
Copy the full SHA 72f354bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e2278f1 - Browse repository at this point
Copy the full SHA e2278f1View commit details -
- Updated the files to make sure that the types are being published - Add a `types` section in the `package.json`, otherwise your editor by default will look for the `DefinitelyTyped` types which got me really confused for a second. - Added some scripts to make sure that the generation of types happens when needed (before tests and before building). This way you never ever have to think about generating them when working on Tailwind CSS internals.
Configuration menu - View commit details
-
Copy full SHA for 6ea3347 - Browse repository at this point
Copy the full SHA 6ea3347View commit details -
Having a `colors.d.ts` next to the `colors.js` file allows us to type the `colors.js` file and your editor will pickup the types from `colors.d.ts`.
Configuration menu - View commit details
-
Copy full SHA for 98c5aa8 - Browse repository at this point
Copy the full SHA 98c5aa8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c1b0b6a - Browse repository at this point
Copy the full SHA c1b0b6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e1e674f - Browse repository at this point
Copy the full SHA e1e674fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cfd3b9c - Browse repository at this point
Copy the full SHA cfd3b9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9796edb - Browse repository at this point
Copy the full SHA 9796edbView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.