UNPKG
pollen-css
Version:
latest (5.0.2)
next (5.0.0-beta.2)
5.0.2
5.0.1
5.0.0
5.0.0-beta.2
5.0.0-beta.1
4.6.2
4.6.1
4.6.0
4.5.0
4.4.0
4.3.1
4.3.0
4.2.0
4.1.1
4.0.0
4.0.0-rc.2
4.0.0-rc.1
3.2.0-beta.3
3.2.0-beta.2
3.2.0-beta.1
3.1.1
3.1.0
3.0.1
3.0.0
3.0.0-rc.2
3.0.0-rc.1
3.0.0-rc.0
2.2.0
2.1.0
2.0.1
2.0.0
1.1.0
1.0.0
0.5.2
0.5.0
0.4.0
Utility-first CSS for the future
www.pollen.style
heybokeh/pollen
pollen-css
/
src
/
utils
/
defineConfig.ts
10 lines
(8 loc)
•
291 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
type {
Config
,
ConfigObject
}
from
"../../@types/pollen"
;
import
modules
from
"../modules"
;
/** * Configuration helper to provide typescript support */
export
function
defineConfig
(
config: Config
):
ConfigObject
{
return
typeof
config ===
"function"
?
config
(modules) : config; }