From f4a3e0f08c5d19fa910a02a640fb8dc5b4d6fab2 Mon Sep 17 00:00:00 2001 From: Prana Adiwira Date: Fri, 28 Aug 2020 12:23:24 +0700 Subject: [PATCH] Make `options` of `PluginContext#parse` optional --- src/rollup/types.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rollup/types.d.ts b/src/rollup/types.d.ts index bb651c01a96..bd95c1fe609 100644 --- a/src/rollup/types.d.ts +++ b/src/rollup/types.d.ts @@ -186,7 +186,7 @@ export interface PluginContext extends MinimalPluginContext { isExternal: IsExternal; /** @deprecated Use `this.getModuleIds` instead */ moduleIds: IterableIterator; - parse: (input: string, options: any) => AcornNode; + parse: (input: string, options?: any) => AcornNode; resolve: ( source: string, importer?: string,