Skip to content
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

Export Config type #14360

Merged
merged 2 commits into from
Sep 6, 2024
Merged

Export Config type #14360

merged 2 commits into from
Sep 6, 2024

Conversation

thecrypticace
Copy link
Contributor

@thecrypticace thecrypticace commented Sep 6, 2024

Right now the following does not work and instead produces a type error:

import { type Config } from 'tailwindcss'

export default {
  // … config here
} satisfies Config

We were not exporting a Config type but thankfully this already exists in the codebase so we just need to export it.

It does not have all properties of an existing config as not all features have been implemented (or in some cases necessary / relevant for v4).

Notably missing are:

  • important
  • prefix
  • separator
  • safelist
  • blocklist
  • future
  • experimental
  • corePlugins

Also, explicit keys for theme are not currently specified but we should probably bring this back even if just as an auto-complete aid.

@thecrypticace thecrypticace marked this pull request as ready for review September 6, 2024 19:45
@adamwathan adamwathan merged commit 783b323 into next Sep 6, 2024
3 checks passed
@adamwathan adamwathan deleted the feat/v4-config-type branch September 6, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants