From 82c5d697bd94b5330948c89d4a55e83ae91dc9d9 Mon Sep 17 00:00:00 2001 From: andylizi Date: Sat, 5 Jun 2021 18:36:56 +0800 Subject: [PATCH] fix: `DOMTokenList.replace` should return boolean --- baselines/dom.generated.d.ts | 2 +- inputfiles/addedTypes.json | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 1a8c1c6ee..7ce419cc3 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -4135,7 +4135,7 @@ interface DOMTokenList { * * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. */ - replace(oldToken: string, newToken: string): void; + replace(token: string, newToken: string): boolean; /** * Returns true if token is in the associated attribute's supported tokens. Returns false otherwise. * diff --git a/inputfiles/addedTypes.json b/inputfiles/addedTypes.json index e280d8334..774fdc611 100644 --- a/inputfiles/addedTypes.json +++ b/inputfiles/addedTypes.json @@ -1100,20 +1100,6 @@ } } }, - "DOMTokenList": { - "name": "DOMTokenList", - "exposed": "Window", - "methods": { - "method": { - "replace": { - "name": "replace", - "override-signatures": [ - "replace(oldToken: string, newToken: string): void" - ] - } - } - } - }, "EventSource": { "events": { "event": [