Skip to content

Commit 95d9682

Browse files
Fix type error in plugin-api tests
1 parent e996daf commit 95d9682

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/tailwindcss/src/compat/plugin-api.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@ import { compile as coreCompile } from '..'
33
import plugin from '../plugin'
44
import { optimizeCss } from '../test-utils/run'
55
import defaultTheme from './default-theme'
6-
import type { CssInJs, PluginAPI, PluginWithConfig } from './plugin-api'
6+
import type { CssInJs, Plugin, PluginAPI } from './plugin-api'
77

88
const css = String.raw
99

1010
// TODO: Expand the API changes into the tests below
11-
function compile(
12-
css: string,
13-
base: string,
14-
{ loadPlugin }: { loadPlugin: () => Promise<PluginWithConfig> },
15-
) {
11+
function compile(css: string, base: string, { loadPlugin }: { loadPlugin: () => Promise<Plugin> }) {
1612
return coreCompile(css, base, {
1713
async loadModule(id, base) {
1814
let plugin = await loadPlugin()

0 commit comments

Comments
 (0)