aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-types/module.d.ts
blob: 9795bd76cf3722935e3c60f37b6913b13d50c1db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
declare module "node:module" {
  export * from "module";
}

declare module "module" {
  export function createRequire(filename: string): NodeJS.Require;
  export function _resolveFilename(
    path: string,
    parent: string,
    isMain: boolean,
  ): string;
  /**
   * Bun's module cache is not exposed but this property exists for compatibility.
   */
  export var _cache: {};

  export var builtinModules: string[];
}