summaryrefslogtreecommitdiff
path: root/cli/tsc/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-21 22:01:53 +0100
committerGitHub <noreply@github.com>2023-03-21 17:01:53 -0400
commit7e61e8f0e0abbf8cbd1a8c2ea21cee9ff11403c2 (patch)
tree34bbcb58480aace7e5a26450380cd852899fee0f /cli/tsc/dts/lib.deno.unstable.d.ts
parentcc46f6776c80ddb9320487e21ec479db0e59d270 (diff)
chore: update formatting configuration (#18331)
Diffstat (limited to 'cli/tsc/dts/lib.deno.unstable.d.ts')
-rw-r--r--cli/tsc/dts/lib.deno.unstable.d.ts30
1 files changed, 19 insertions, 11 deletions
diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts
index 62426ca35..198b634fd 100644
--- a/cli/tsc/dts/lib.deno.unstable.d.ts
+++ b/cli/tsc/dts/lib.deno.unstable.d.ts
@@ -369,7 +369,10 @@ declare namespace Deno {
/** Return the direct memory pointer to the typed array in memory. */
static of(value: Deno.UnsafeCallback | BufferSource): PointerValue;
/** Return a new pointer offset from the original by `offset` bytes. */
- static offset(value: NonNullable<PointerValue>, offset: number): PointerValue
+ static offset(
+ value: NonNullable<PointerValue>,
+ offset: number,
+ ): PointerValue;
/** Get the numeric value of a pointer */
static value(value: PointerValue): number | bigint;
}
@@ -427,7 +430,10 @@ declare namespace Deno {
getCString(offset?: number): string;
/** Gets a C string (`null` terminated string) at the specified byte offset
* from the specified pointer. */
- static getCString(pointer: NonNullable<PointerValue>, offset?: number): string;
+ static getCString(
+ pointer: NonNullable<PointerValue>,
+ offset?: number,
+ ): string;
/** Gets an `ArrayBuffer` of length `byteLength` at the specified byte
* offset from the pointer. */
getArrayBuffer(byteLength: number, offset?: number): ArrayBuffer;
@@ -528,14 +534,14 @@ declare namespace Deno {
* @category FFI
*/
export class UnsafeCallback<
- Definition extends UnsafeCallbackDefinition = UnsafeCallbackDefinition
+ Definition extends UnsafeCallbackDefinition = UnsafeCallbackDefinition,
> {
constructor(
definition: Const<Definition>,
callback: UnsafeCallbackFunction<
Definition["parameters"],
Definition["result"]
- >
+ >,
);
/** The pointer to the unsafe callback. */
@@ -556,13 +562,13 @@ declare namespace Deno {
* exists and is not unref'ed.
*/
static threadSafe<
- Definition extends UnsafeCallbackDefinition = UnsafeCallbackDefinition
+ Definition extends UnsafeCallbackDefinition = UnsafeCallbackDefinition,
>(
definition: Const<Definition>,
callback: UnsafeCallbackFunction<
Definition["parameters"],
Definition["result"]
- >
+ >,
): UnsafeCallback<Definition>;
/**
@@ -1213,13 +1219,12 @@ declare namespace Deno {
* Information for a HTTP request.
*
* @category HTTP Server
- */
- export interface ServeHandlerInfo {
- /** The remote address of the connection. */
+ */
+ export interface ServeHandlerInfo {
+ /** The remote address of the connection. */
remoteAddr: Deno.NetAddr;
}
-
/** **UNSTABLE**: New API, yet to be vetted.
*
* A handler for HTTP requests. Consumes a request and returns a response.
@@ -1230,7 +1235,10 @@ declare namespace Deno {
*
* @category HTTP Server
*/
- export type ServeHandler = (request: Request, info: ServeHandlerInfo) => Response | Promise<Response>;
+ export type ServeHandler = (
+ request: Request,
+ info: ServeHandlerInfo,
+ ) => Response | Promise<Response>;
/** **UNSTABLE**: New API, yet to be vetted.
*