Update dependency typescript to v4.8.2 (#13381)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
This commit is contained in:
renovate[bot]andfisker Cheung authored and GitHub committed 2022-09-07 21:02:51 +08:00
1 parent 1142cf0cb7
commit bd5f91545f
7 files changed
+113 -127

No files matched your search

+6 -8
View File
@@ -47,14 +47,12 @@ function removeSubmodule(text, testFunction) {
function replaceSubmodule(text, testFunction, replacement) {
const modules = getSubmodules(text, testFunction);
if (modules.length !== 1) {
return text;
// TODO: Enable this check when merge to `next` branch
// throw Object.assign(
// new Error(
// `Expect exactly one submodule to be found, got ${modules.length} submodules.`
// ),
// { modules }
// );
throw Object.assign(
new Error(
`Expect exactly one submodule to be found, got ${modules.length} submodules.`
),
{ modules }
);
}
const [{ start, end, before, after }] = modules;