Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion types/node/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@types/node",
"version": "20.11.9999",
"version": "20.12.9999",
"nonNpm": "conflict",
"nonNpmDescription": "Node.js",
"projects": [
Expand Down
15 changes: 15 additions & 0 deletions types/node/process.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,21 @@ declare module "process" {
* @param [signal='SIGTERM'] The signal to send, either as a string or number.
*/
kill(pid: number, signal?: string | number): true;
/**
* Loads the environment configuration from a `.env` file into `process.env`. If
* the file is not found, error will be thrown.
*
* To load a specific .env file by specifying its path, use the following code:
*
* ```js
* import { loadEnvFile } from 'node:process';
*
* loadEnvFile('./development.env')
* ```
* @since v20.12.0
* @param path The path to the .env file
*/
loadEnvFile(path?: string | URL | Buffer): void;
/**
* The `process.pid` property returns the PID of the process.
*
Expand Down