From 13fb954b6f57b8911ac09a23e345a73575f365d1 Mon Sep 17 00:00:00 2001 From: MatthewChenShow <158122452+MatthewChenShow@users.noreply.github.com> Date: Thu, 25 Apr 2024 17:07:40 +0800 Subject: [PATCH] feat: add react d.ts lib --- src/utils/initEditor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/initEditor.ts b/src/utils/initEditor.ts index d7bbf79..51c5604 100644 --- a/src/utils/initEditor.ts +++ b/src/utils/initEditor.ts @@ -88,7 +88,7 @@ let isAddDefaultsLibs = false; export async function addExtraLibs(extraLibs: Array<{ url: string; path: string; }>) { if (!isAddDefaultsLibs) { extraLibs = [{ - url: `${ASSETSPATH}@types/react/index.d.ts`, + url: `https://d2.music.126.net/dmusic/obj/w5zCg8OAw6HDjzjDgMK_/35499940420/bc86/65fe/7be4/17172939804db04c61e2cc7a97751f4e.ts?download=react.d.ts`, path: 'music:/node_modules/@types/react/index.d.ts' }, { url: `${ASSETSPATH}@types/react/global.d.ts`,