mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
* 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>
30 lines
727 B
JavaScript
30 lines
727 B
JavaScript
import what from "./_auth";
|
|
export { default as auth } from "./_auth";
|
|
export { default as login } from "./_login";
|
|
export * from "./_bacon";
|
|
export let yoyoyo = "yoyoyo";
|
|
export default function hey() {
|
|
return true;
|
|
}
|
|
export const foo = () => {};
|
|
export var bar = 100;
|
|
export let powerLevel = Symbol("9001");
|
|
export { what };
|
|
export { what as when, what as whence };
|
|
export {} from "./_bacon";
|
|
export * as where from "./_auth";
|
|
export { bar as booop };
|
|
|
|
export function test() {
|
|
hey();
|
|
foo();
|
|
if (where.default !== "hi") {
|
|
throw new Error(`_auth import is incorrect.`);
|
|
}
|
|
console.assert(
|
|
powerLevel.description === "9001",
|
|
"Symbol is not exported correctly",
|
|
);
|
|
return testDone(import.meta.url);
|
|
}
|