From 35772ca8d0491904cf1e70f09c1fe33ef3e82d83 Mon Sep 17 00:00:00 2001 From: CHOYSEN Date: Fri, 17 Jun 2022 01:24:08 +0800 Subject: [PATCH] refactor(types): use built-in utility type `Awaited` (#801) instead of explicitly defining it. (introduced in TS 4.5) --- src/node/plugin.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/node/plugin.ts b/src/node/plugin.ts index 220012cd..e3f14131 100644 --- a/src/node/plugin.ts +++ b/src/node/plugin.ts @@ -8,8 +8,6 @@ import { OutputAsset, OutputChunk } from 'rollup' import { staticDataPlugin } from './staticDataPlugin' import { PageDataPayload } from './shared' -type Awaited = T extends Promise ? P : never - const hashRE = /\.(\w+)\.js$/ const staticInjectMarkerRE = /\b(const _hoisted_\d+ = \/\*(?:#|@)__PURE__\*\/\s*createStaticVNode)\("(.*)", (\d+)\)/g