Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 032e357

Browse files
committedFeb 14, 2018
fix: add escape to CSS
Closes: microsoft/TypeScript#21090
1 parent 64189db commit 032e357

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
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: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,9 @@
15751575
"name": "HTMLSlotElement",
15761576
"extends": "HTMLElement",
15771577
"flavor": "Web",
1578-
"tagNames": [ "slot" ],
1578+
"tagNames": [
1579+
"slot"
1580+
],
15791581
"properties": [
15801582
{
15811583
"name": "name",
@@ -1638,10 +1640,12 @@
16381640
"kind": "interface",
16391641
"name": "ElementCreationOptions",
16401642
"flavor": "Web",
1641-
"properties": [{
1642-
"name": "is?",
1643-
"type": "string"
1644-
}]
1643+
"properties": [
1644+
{
1645+
"name": "is?",
1646+
"type": "string"
1647+
}
1648+
]
16451649
},
16461650
{
16471651
"kind": "interface",
@@ -2614,7 +2618,7 @@
26142618
"name": "signal",
26152619
"type": "AbortSignal"
26162620
}
2617-
],
2621+
],
26182622
"methods": [
26192623
{
26202624
"name": "abort",
@@ -3002,5 +3006,13 @@
30023006
"signatures": [
30033007
"unlockOrientation(): void"
30043008
]
3009+
},
3010+
{
3011+
"kind": "method",
3012+
"name": "escape",
3013+
"interface": "CSS",
3014+
"signatures": [
3015+
"escape(value: string): string"
3016+
]
30053017
}
30063018
]

0 commit comments

Comments
 (0)
Please sign in to comment.