From e29ce63080526923c14a686d143525fd2e20a729 Mon Sep 17 00:00:00 2001 From: Cong-Cong Date: Tue, 5 Mar 2024 15:19:44 +0800 Subject: [PATCH] fix: LoaderContext type --- declarations/LoaderContext.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/declarations/LoaderContext.d.ts b/declarations/LoaderContext.d.ts index 46db6d268a5..d3a679c5ea8 100644 --- a/declarations/LoaderContext.d.ts +++ b/declarations/LoaderContext.d.ts @@ -195,19 +195,19 @@ export interface LoaderRunnerLoaderContext { * The resource path. * In the example: "/abc/resource.js" */ - resourcePath: string; + resourcePath?: string; /** * The resource query string. * Example: "?query" */ - resourceQuery: string; + resourceQuery?: string; /** * The resource fragment. * Example: "#frag" */ - resourceFragment: string; + resourceFragment?: string; /** * The resource inclusive query and fragment.