Skip to content

Commit

Permalink
Update types to work with Node16 module resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Sep 27, 2023
1 parent 61dc99f commit dbd3465
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
7 changes: 7 additions & 0 deletions types/index.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Plugin } from 'postcss'
import { Config } from 'tailwindcss/types/config'

declare function tailwindcss(config: string | Config | { config: string | Config }): Plugin

export default tailwindcss
export type { Config }
15 changes: 10 additions & 5 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { PluginCreator } from 'postcss'
import type { Config } from './config.d'
import { Plugin } from 'postcss'
import { Config } from 'tailwindcss/types/config'

declare const plugin: PluginCreator<string | Config | { config: string | Config }>
declare function tailwindcss(config: string | Config | { config: string | Config }): Plugin

export { Config }
export default plugin
declare type _Config = Config
declare namespace tailwindcss {
let postcss: true
export type Config = _Config
}

export = tailwindcss

0 comments on commit dbd3465

Please sign in to comment.