File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import {
24
24
} from '.' ;
25
25
import { _DeclarationWithChildren } from './declaration-internal' ;
26
26
import * as sassParser from '../..' ;
27
+ import { ContainerWithChildren } from 'postcss/lib/container' ;
27
28
28
29
// TODO(nweiz): Make sure setting non-identifier strings for prop here and name
29
30
// in GenericAtRule escapes properly.
@@ -247,6 +248,8 @@ export class Declaration
247
248
248
249
/** @hidden */
249
250
normalize ( node : NewNode , sample ?: postcss . Node ) : ChildNode [ ] {
250
- return normalize ( this as StatementWithChildren , node , sample ) ;
251
+ // Casting is necessary because `_Declaration` can't extend
252
+ // `ContainerWithChildren` because it is a union type.
253
+ return normalize ( this as unknown as StatementWithChildren , node , sample ) ;
251
254
}
252
255
}
Original file line number Diff line number Diff line change 3
3
// https://opensource.org/licenses/MIT.
4
4
5
5
import * as postcss from 'postcss' ;
6
+ import { ContainerWithChildren } from 'postcss/lib/container' ;
6
7
7
8
import { Container } from '../container' ;
8
9
import { Interpolation } from '../interpolation' ;
@@ -178,7 +179,7 @@ export interface ContainerProps extends NodeProps {
178
179
*
179
180
* @category Statement
180
181
*/
181
- export type StatementWithChildren = postcss . Container < postcss . ChildNode > &
182
+ export type StatementWithChildren = ContainerWithChildren &
182
183
Container < ChildNode , NewNode > &
183
184
AnyStatement ;
184
185
Original file line number Diff line number Diff line change 31
31
"test" : " jest"
32
32
},
33
33
"dependencies" : {
34
- "postcss" : " 8.5.5 " ,
34
+ "postcss" : " 8.5.6 " ,
35
35
"sass" : " file:../../build/npm"
36
36
},
37
37
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments