Skip to content

Commit

Permalink
fix: typenames too long for typedoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Anidetrix committed May 20, 2020
1 parent c00344f commit 13e2d49
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
6 changes: 3 additions & 3 deletions src/loaders/postcss/modules/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import postcss from "postcss";
import modulesValues from "postcss-modules-values";
import localByDefault, { LocalByDefaultOptions } from "postcss-modules-local-by-default";
import extractImports, { ExtractImportsOptions } from "postcss-modules-extract-imports";
import modulesScope, { ScopeOptions } from "postcss-modules-scope";
import localByDefault, { Options as LocalByDefaultOptions } from "postcss-modules-local-by-default";
import extractImports, { Options as ExtractImportsOptions } from "postcss-modules-extract-imports";
import modulesScope, { Options as ScopeOptions } from "postcss-modules-scope";
import generateScopedNameDefault from "./generate";

/** Options for [CSS Modules](https://github.com/css-modules/css-modules) */
Expand Down
24 changes: 7 additions & 17 deletions src/shims/postcss-modules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,21 @@ declare module "postcss-modules-values" {

declare module "postcss-modules-local-by-default" {
import { Plugin } from "postcss";

export interface LocalByDefaultOptions {
mode?: "local" | "global" | "pure";
}

export default function (options?: LocalByDefaultOptions): Plugin<LocalByDefaultOptions>;
export type Options = { mode?: "local" | "global" | "pure" };
export default function (options?: Options): Plugin<Options>;
}

declare module "postcss-modules-extract-imports" {
import { Plugin } from "postcss";

export interface ExtractImportsOptions {
failOnWrongOrder?: boolean;
}

export default function (options?: ExtractImportsOptions): Plugin<ExtractImportsOptions>;
export type Options = { failOnWrongOrder?: boolean };
export default function (options?: Options): Plugin<Options>;
}

declare module "postcss-modules-scope" {
import { Plugin } from "postcss";

export interface ScopeOptions {
export type Options = {
exportGlobals?: boolean;
generateScopedName?: (name: string, file: string, css: string) => string;
}

export default function (options?: ScopeOptions): Plugin<ScopeOptions>;
};
export default function (options?: Options): Plugin<Options>;
}

0 comments on commit 13e2d49

Please sign in to comment.