Skip to content

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
@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.

3 participants