@rollup/browser 4.1.6 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -206,6 +206,16 @@ export type ParseAst = (
206
206
  options?: { allowReturnOutsideFunction?: boolean }
207
207
  ) => AstNode;
208
208
 
209
+ // declare AbortSignal here for environments without DOM lib or @types/node
210
+ declare global {
211
+ interface AbortSignal {}
212
+ }
213
+
214
+ export type ParseAstAsync = (
215
+ input: string,
216
+ options?: { allowReturnOutsideFunction?: boolean; signal?: AbortSignal }
217
+ ) => Promise<AstNode>;
218
+
209
219
  export interface PluginContext extends MinimalPluginContext {
210
220
  addWatchFile: (id: string) => void;
211
221
  cache: PluginCache;