File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## [ Unreleased]
4
4
5
+ ### Fixed
6
+
7
+ - Update type definition to add ` cssNesting ` constructor option ([ #401 ] ( https://github.com/marp-team/marpit/pull/401 ) )
8
+
5
9
## v3.1.0 - 2024-08-30
6
10
7
11
### Added
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ declare namespace Marpit {
10
10
anchor ?: boolean | AnchorCallback
11
11
container ?: false | Element | Element [ ]
12
12
cssContainerQuery ?: boolean | string | string [ ]
13
+ cssNesting ?: boolean
13
14
headingDivider ?: false | HeadingDivider | HeadingDivider [ ]
14
15
lang ?: string
15
16
looseYAML ?: boolean
@@ -47,15 +48,20 @@ declare namespace Marpit {
47
48
...params : P
48
49
) => void
49
50
51
+ type ThemeMetaType = {
52
+ [ key : string ] : StringConstructor | ArrayConstructor
53
+ }
54
+
50
55
type ThemeReservedMeta = {
51
56
theme : string
52
57
}
53
58
54
- type ThemeMetaType = {
55
- [ key : string ] : StringConstructor | ArrayConstructor
59
+ interface ThemeSetOptions {
60
+ cssNesting ?: boolean
56
61
}
57
62
58
63
type ThemeOptions = {
64
+ cssNesting ?: boolean
59
65
metaType ?: ThemeMetaType
60
66
}
61
67
@@ -126,8 +132,9 @@ declare namespace Marpit {
126
132
}
127
133
128
134
export class ThemeSet {
129
- constructor ( )
135
+ constructor ( opts ?: ThemeSetOptions )
130
136
137
+ cssNesting : boolean
131
138
default : Theme | undefined
132
139
metaType : ThemeMetaType
133
140
You can’t perform that action at this time.
0 commit comments