aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.js
diff options
context:
space:
mode:
authorGravatar Colin McDonnell <colinmcd94@gmail.com> 2022-11-09 15:40:40 -0800
committerGravatar GitHub <noreply@github.com> 2022-11-09 15:40:40 -0800
commitf7f1b604443c030afe29d1059b90f72c69afe081 (patch)
tree8f2397447b2a84dab02850007264b72cc565f5d6 /src/runtime.js
parentda257336b0b70df8c31da647496899cf70670000 (diff)
downloadbun-f7f1b604443c030afe29d1059b90f72c69afe081.tar.gz
bun-f7f1b604443c030afe29d1059b90f72c69afe081.tar.zst
bun-f7f1b604443c030afe29d1059b90f72c69afe081.zip
Add bun-types, add typechecking, add `child_process` types (#1475)
* Add bun-types to packages * Improve typing * Fix types in tests * Fix dts tests * Run formatter * Fix all type errors * Add strict mode, fix type errors * Add ffi changes * Move workflows to root * Add workflows * Remove labeler * Add child_process types * Fix synthetic defaults issue * Remove docs * Move scripts * Run prettier * Include examples in typechecking * captureStackTrace types * moved captureStackTrace types to globals * Address reviews Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
Diffstat (limited to 'src/runtime.js')
-rw-r--r--src/runtime.js24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/runtime.js b/src/runtime.js
index fe2f5b9df..b39eaed9d 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -45,10 +45,10 @@ export var __toModule = (module) => {
"default",
module && module.__esModule && "default" in module
? { get: () => module.default, enumerable: true, configurable: true }
- : { value: module, enumerable: true, configurable: true }
- )
+ : { value: module, enumerable: true, configurable: true },
+ ),
),
- module
+ module,
);
};
@@ -83,12 +83,12 @@ export var __commonJS = (cb, name) => {
Object.setPrototypeOf(mod_exports, __getProtoOf(origExports));
Object.defineProperties(
mod_exports,
- Object.getOwnPropertyDescriptors(origExports)
+ Object.getOwnPropertyDescriptors(origExports),
);
} else {
mod_exports = __create(
__getProtoOf(mod_exports),
- Object.getOwnPropertyDescriptors(mod_exports)
+ Object.getOwnPropertyDescriptors(mod_exports),
);
}
}
@@ -237,13 +237,15 @@ export var __merge = (props, defaultProps) => {
};
export var __decorateClass = (decorators, target, key, kind) => {
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
+ var result =
+ kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
for (var i = decorators.length - 1, decorator; i >= 0; i--)
- if (decorator = decorators[i])
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
- if (kind && result)
- __defProp(target, key, result);
+ if ((decorator = decorators[i]))
+ result =
+ (kind ? decorator(target, key, result) : decorator(result)) || result;
+ if (kind && result) __defProp(target, key, result);
return result;
};
-export var __decorateParam = (index, decorator) => (target, key) => decorator(target, key, index); \ No newline at end of file
+export var __decorateParam = (index, decorator) => (target, key) =>
+ decorator(target, key, index);