Skip to content

Commit a1bb17d

Browse files
committed
fix: add escape to CSS
Closes: microsoft/TypeScript#21090
1 parent c8c8a27 commit a1bb17d

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

baselines/dom.generated.d.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,9 +1819,12 @@ declare var CryptoKeyPair: {
18191819
};
18201820

18211821
interface CSS {
1822-
supports(property: string, value?: string): boolean;
1822+
escape(value: string): string;
18231823
}
1824-
declare var CSS: CSS;
1824+
1825+
declare var CSS: {
1826+
supports(property: string, value?: string): boolean;
1827+
};
18251828

18261829
interface CSSConditionRule extends CSSGroupingRule {
18271830
conditionText: string;

inputfiles/addedTypes.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2980,5 +2980,13 @@
29802980
"signatures": [
29812981
"animate(keyframes: AnimationKeyFrame | AnimationKeyFrame[], options: number | AnimationOptions): Animation"
29822982
]
2983+
},
2984+
{
2985+
"kind": "method",
2986+
"name": "escape",
2987+
"interface": "CSS",
2988+
"signatures": [
2989+
"escape(value: string): string"
2990+
]
29832991
}
29842992
]

0 commit comments

Comments
 (0)