From 1185ed3415deb52f02fee1116226981b59fb98db Mon Sep 17 00:00:00 2001 From: Julien Huang Date: Fri, 28 Jun 2024 20:52:35 +0200 Subject: [PATCH] fix: allow void in TransformResult --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 14ea049d..846ee11d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -36,7 +36,7 @@ export interface JsPluginExtended extends FarmPlugin { [key: string]: any } -export type TransformResult = string | { code: string, map?: SourceMapInput | SourceMapCompact | null } | null | undefined +export type TransformResult = string | { code: string, map?: SourceMapInput | SourceMapCompact | null } | null | undefined | void export interface ExternalIdResult { id: string, external?: boolean }