-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Export default plugin without options and colorwind function with o…
…ptions
- Loading branch information
Showing
1 changed file
with
9 additions
and
4 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 |
---|---|---|
@@ -1,14 +1,19 @@ | ||
export * as config from './config'; | ||
import plug, { | ||
type PluginAPI, | ||
type PluginCreator, | ||
type PluginCreatorWithOptions, | ||
} from 'plugwind.js'; | ||
import colorwind, { type ColorwindOptions } from './plugin'; | ||
import plugin, { type ColorwindOptions } from './plugin'; | ||
|
||
const _colorwind: PluginCreatorWithOptions<ColorwindOptions> = plug.with( | ||
(options?: ColorwindOptions) => (api: PluginAPI) => { | ||
return colorwind(api, options); | ||
export const colorwind: PluginCreatorWithOptions<ColorwindOptions> = plug.with( | ||
(options) => (api: PluginAPI) => { | ||
return plugin(api, options); | ||
}, | ||
); | ||
|
||
const _colorwind: PluginCreator = plug((api: PluginAPI) => { | ||
return plugin(api); | ||
}); | ||
|
||
export default _colorwind; |