Skip to content

Commit a550aee

Browse files
committed
Change which type is exported
1 parent ef1c1db commit a550aee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

index.test.mts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from "node:path";
33
import postcss from "postcss";
44
import prettier from "prettier";
55
import { describe, it, expect } from "vitest";
6-
import { plugin, type ConfigItem } from "./index.js";
6+
import { plugin, type PluginOptions } from "./index.js";
77

88
// We don't care about formatting differences, so normalize with prettier
99
function format(css: string) {
@@ -13,7 +13,7 @@ function format(css: string) {
1313
async function run(
1414
input: string,
1515
output: string,
16-
opts?: ConfigItem[],
16+
opts?: PluginOptions,
1717
postcssOpts = {}
1818
) {
1919
const result = await postcss([plugin(opts)]).process(input, postcssOpts);

index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import type { PluginCreator } from "postcss";
44
const DEFAULT_INCLUDE = "**/*.module.css";
55
const DEFAULT_LAYERNAME = "components";
66

7-
export type ConfigItem = {
7+
type ConfigItem = {
88
include?: string;
99
layerName?: string;
1010
};
11-
type PluginOptions = ConfigItem[];
11+
export type PluginOptions = ConfigItem[];
1212

1313
export const plugin: PluginCreator<PluginOptions> = (
1414
configItems = [

0 commit comments

Comments
 (0)