Skip to content

Commit

Permalink
fix: better typedoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Anidetrix committed May 20, 2020
1 parent 2d05f33 commit fb31286
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .ghpages.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
theme: jekyll-theme-cayman
include:
- "*.html"
- "_*.html"
- "_*_.html"
- "_*_.*.html"
- "_*_.md"
- "_*_.*.md"
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 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, { 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 localByDefault from "postcss-modules-local-by-default";
import extractImports from "postcss-modules-extract-imports";
import modulesScope from "postcss-modules-scope";
import generateScopedNameDefault from "./generate";

/** Options for [CSS Modules](https://github.com/css-modules/css-modules) */
Expand All @@ -11,11 +11,11 @@ export interface ModulesOptions {
* Default mode for classes
* @default "local"
*/
mode?: LocalByDefaultOptions["mode"];
mode?: "local" | "global" | "pure";
/** Fail on wrong order of composition */
failOnWrongOrder?: ExtractImportsOptions["failOnWrongOrder"];
failOnWrongOrder?: boolean;
/** Export global classes */
exportGlobals?: ScopeOptions["exportGlobals"];
exportGlobals?: boolean;
/**
* Placeholder or function for scoped name generation.
* Allowed blocks for placeholder:
Expand All @@ -25,7 +25,7 @@ export interface ModulesOptions {
* - `[hash(:<num>)]`: A hash based on the name and content of the asset (with optional length).
* @default "[name]_[local]__[hash:8]"
*/
generateScopedName?: string | ScopeOptions["generateScopedName"];
generateScopedName?: string | ((name: string, file: string, css: string) => string);
/** Function for resulting replacements extraction */
getReplacements?: (file: string, replacements: { [x: string]: string }, out?: string) => void;
}
Expand Down
1 change: 0 additions & 1 deletion typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
"includeDeclarations": true,
"excludeExternals": true,
"disableSources": true,
"readme": "none",
"gitRevision": "master"
}

0 comments on commit fb31286

Please sign in to comment.