-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update types to work with Node16 module resolution
- Loading branch information
1 parent
61dc99f
commit dbd3465
Showing
2 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |