Skip to content

Commit 49a1624

Browse files
committed
u
1 parent 9e6110b commit 49a1624

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

packages/rolldown/src/binding.d.cts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,20 @@ export declare class ResolverFactory {
509509
* This method automatically discovers tsconfig.json by traversing parent directories.
510510
*/
511511
resolveFileAsync(file: string, request: string): Promise<ResolveResult>
512+
/**
513+
* Synchronously resolve `specifier` for TypeScript declaration files.
514+
*
515+
* `file` is the absolute path to the containing file.
516+
* Uses TypeScript's `moduleResolution: "bundler"` algorithm.
517+
*/
518+
resolveDtsSync(file: string, request: string): ResolveResult
519+
/**
520+
* Asynchronously resolve `specifier` for TypeScript declaration files.
521+
*
522+
* `file` is the absolute path to the containing file.
523+
* Uses TypeScript's `moduleResolution: "bundler"` algorithm.
524+
*/
525+
resolveDtsAsync(file: string, request: string): Promise<ResolveResult>
512526
}
513527

514528
/** Node.js builtin module when `Options::builtin_modules` is enabled. */
@@ -691,6 +705,15 @@ export interface NapiResolveOptions {
691705
* Default `true`
692706
*/
693707
symlinks?: boolean
708+
/**
709+
* Whether to read the `NODE_PATH` environment variable and append its entries to `modules`.
710+
*
711+
* `NODE_PATH` is a deprecated Node.js feature that is not part of ESM resolution.
712+
* Set this to `false` to disable the behavior.
713+
*
714+
* Default `true`
715+
*/
716+
nodePath?: boolean
694717
/**
695718
* Whether to parse [module.builtinModules](https://nodejs.org/api/module.html#modulebuiltinmodules) or not.
696719
* For example, "zlib" will throw [crate::ResolveError::Builtin] when set to true.

0 commit comments

Comments
 (0)