@types/node
Advanced tools
Comparing version 22.4.2 to 22.5.0
@@ -70,2 +70,3 @@ /** | ||
/// <reference path="sea.d.ts" /> | ||
/// <reference path="sqlite.d.ts" /> | ||
/// <reference path="stream.d.ts" /> | ||
@@ -72,0 +73,0 @@ /// <reference path="stream/promises.d.ts" /> |
{ | ||
"name": "@types/node", | ||
"version": "22.4.2", | ||
"version": "22.5.0", | ||
"description": "TypeScript definitions for node", | ||
@@ -215,4 +215,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", | ||
}, | ||
"typesPublisherContentHash": "1661354099f570fd618ceda1a789867f3c8f3e5a51051679453227abe7d5b726", | ||
"typesPublisherContentHash": "6e32f4b237ea4dd6efcade6ee8b163957a578f405f3c76453b372a2d32e00c03", | ||
"typeScriptVersion": "4.8" | ||
} |
@@ -98,2 +98,11 @@ declare module "path/posix" { | ||
/** | ||
* The `path.matchesGlob()` method determines if `path` matches the `pattern`. | ||
* @param path The path to glob-match against. | ||
* @param pattern The glob to check the path against. | ||
* @returns Whether or not the `path` matched the `pattern`. | ||
* @throws {TypeError} if `path` or `pattern` are not strings. | ||
* @since v22.5.0 | ||
*/ | ||
matchesGlob(path: string, pattern: string): boolean; | ||
/** | ||
* Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory. | ||
@@ -100,0 +109,0 @@ * |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 21 Aug 2024 01:34:14 GMT | ||
* Last updated: Wed, 21 Aug 2024 16:09:20 GMT | ||
* Dependencies: [undici-types](https://npmjs.com/package/undici-types) | ||
@@ -14,0 +14,0 @@ |
@@ -413,2 +413,20 @@ /** | ||
/** | ||
* Sends a value to another worker, identified by its thread ID. | ||
* @param threadId The target thread ID. If the thread ID is invalid, a `ERR_WORKER_MESSAGING_FAILED` error will be thrown. | ||
* If the target thread ID is the current thread ID, a `ERR_WORKER_MESSAGING_SAME_THREAD` error will be thrown. | ||
* @param value The value to send. | ||
* @param transferList If one or more `MessagePort`-like objects are passed in value, a `transferList` is required for those items | ||
* or `ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST` is thrown. See `port.postMessage()` for more information. | ||
* @param timeout Time to wait for the message to be delivered in milliseconds. By default it's `undefined`, which means wait forever. | ||
* If the operation times out, a `ERR_WORKER_MESSAGING_TIMEOUT` error is thrown. | ||
* @since v22.5.0 | ||
*/ | ||
postMessageToThread(threadId: number, value: any, timeout?: number): Promise<void>; | ||
postMessageToThread( | ||
threadId: number, | ||
value: any, | ||
transferList: readonly TransferListItem[], | ||
timeout?: number, | ||
): Promise<void>; | ||
/** | ||
* Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker does _not_ let the program exit if it's the only active handle left (the default | ||
@@ -415,0 +433,0 @@ * behavior). If the worker is `ref()`ed, calling `ref()` again has |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2126835
59
47640