Skip to content

Commit

Permalink
fix: postcss related types
Browse files Browse the repository at this point in the history
  • Loading branch information
Anidetrix committed Dec 30, 2020
1 parent 162590f commit df78c78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/loaders/postcss/modules/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Plugin } from "postcss";
import Processor from "postcss/lib/processor";
import modulesValues from "postcss-modules-values";
import localByDefault from "postcss-modules-local-by-default";
import extractImports from "postcss-modules-extract-imports";
Expand Down Expand Up @@ -28,7 +29,7 @@ export interface ModulesOptions {
generateScopedName?: string | ((name: string, file: string, css: string) => string);
}

export default (options: ModulesOptions): Plugin[] => {
export default (options: ModulesOptions): (Plugin | Processor)[] => {
const opts = {
mode: "local" as const,
...options,
Expand Down

0 comments on commit df78c78

Please sign in to comment.