aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-types
diff options
context:
space:
mode:
authorGravatar Colin McDonnell <colinmcd94@gmail.com> 2023-06-07 19:03:11 -0700
committerGravatar Colin McDonnell <colinmcd94@gmail.com> 2023-06-07 19:03:11 -0700
commit7a443f72b525f5e80ecccb581fc02eadd1d4c6a9 (patch)
treecb0f4c1beb99635ca4e528c17068f2a0d10eff05 /packages/bun-types
parent4f2095d1c64467f190ac4f35209ff663bf34f39a (diff)
downloadbun-plugin/plugindata.tar.gz
bun-plugin/plugindata.tar.zst
bun-plugin/plugindata.zip
Attempt to add plugindataplugin/plugindata
Diffstat (limited to 'packages/bun-types')
-rw-r--r--packages/bun-types/bun.d.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/bun-types/bun.d.ts b/packages/bun-types/bun.d.ts
index 633570909..19c1abb25 100644
--- a/packages/bun-types/bun.d.ts
+++ b/packages/bun-types/bun.d.ts
@@ -2913,6 +2913,10 @@ declare module "bun" {
* The default loader for this file extension
*/
loader: Loader;
+ /**
+ * Contextual data passed down from the `onResolve` callback that resolved this module
+ */
+ pluginData: any;
}
type OnLoadResult = OnLoadResultSourceCode | OnLoadResultObject;
@@ -2959,6 +2963,10 @@ declare module "bun" {
*/
namespace?: string;
external?: boolean;
+ /**
+ * Data to pass to the `onLoad` callback
+ */
+ pluginData?: any;
}
type OnResolveCallback = (