File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ import * as postcss from "postcss";
3
3
import { OutputMode } from "./OutputMode" ;
4
4
import { Plugin } from "./Plugin" ;
5
5
import { CssBlockError , InvalidBlockSyntax , MissingSourcePath } from "./errors" ;
6
- import { Options } from "./options" ;
6
+ import { Configuration } from "./options" ;
7
7
8
8
// This is ugly but it's the only thing I have been able to make work.
9
9
// I welcome a patch that cleans this up.
10
10
11
11
type temp = {
12
- ( postcssImpl : typeof postcss ) : ( opts ?: Partial < Readonly < Options > > ) => postcss . Plugin < Partial < Readonly < Options > > > ;
12
+ ( postcssImpl : typeof postcss ) : ( opts ?: Partial < Readonly < Configuration > > ) => postcss . Plugin < Partial < Readonly < Configuration > > > ;
13
13
OutputMode : typeof OutputMode ;
14
14
CssBlockError : typeof CssBlockError ;
15
15
InvalidBlockSyntax : typeof InvalidBlockSyntax ;
@@ -19,7 +19,7 @@ type temp = {
19
19
function makeApi ( ) : temp {
20
20
let cssBlocks : temp ;
21
21
cssBlocks = < temp > function ( postcssImpl : typeof postcss ) {
22
- return ( opts ?: Partial < Readonly < Options > > ) => {
22
+ return ( opts ?: Partial < Readonly < Configuration > > ) => {
23
23
let plugin = new Plugin ( postcssImpl , opts ) ;
24
24
return plugin . process . bind ( plugin ) ;
25
25
} ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { Syntax } from "./BlockParser";
6
6
import { ReadonlyOptions } from "./options" ;
7
7
8
8
declare module "./options" {
9
- export interface Options {
9
+ export interface Configuration {
10
10
importer : Importer ;
11
11
importerData : ImporterData ;
12
12
}
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ export interface Configuration {
27
27
/**
28
28
* Valid user-provided options for the CSS Blocks plugin.
29
29
*/
30
- export type SparseOptions = Partial < Readonly < Options > > ;
30
+ export type SparseOptions = Partial < Readonly < Configuration > > ;
31
31
32
32
/**
33
33
* Options that can/will be read but not changed. Default
34
34
* values will have already been provided.
35
35
*/
36
- export type ReadonlyOptions = Readonly < Options > ;
36
+ export type ReadonlyOptions = Readonly < Configuration > ;
You can’t perform that action at this time.
0 commit comments