Skip to content

Commit d877a2e

Browse files
committed
build(docs): add return types of process lit postcss
1 parent e052f77 commit d877a2e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

scripts/postcss-custom-properties-fallback/plugin.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ const isTransformableDecl = decl => customPropertiesRegExp.test(decl.value);
1010

1111
import postcssValuesParser from 'postcss-values-parser'; // eslint-disable-line
1212

13-
export default opts => ({
13+
/**
14+
* @param {{importFrom: any}} opts
15+
* @returns {import('postcss').Plugin}
16+
*/
17+
const plugin = opts => ({
1418
postcssPlugin: 'postcss-custom-properties-fallback',
1519

1620
prepare() {
@@ -69,3 +73,5 @@ export default opts => ({
6973
},
7074
});
7175
//# sourceMappingURL=plugin.js.map
76+
77+
export default plugin;

scripts/processLitCSSPlugin.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const options = {
2121

2222
const filter = createFilter(options.include, options.exclude, {});
2323

24+
/**
25+
* @returns {import('vite').PluginOption}
26+
*/
2427
export default function () {
2528
return {
2629
name: 'process-lit-postcss-esm',

0 commit comments

Comments
 (0)