diff options
Diffstat (limited to 'packages/bun-types')
-rw-r--r-- | packages/bun-types/bun-test.d.ts | 10 | ||||
-rw-r--r-- | packages/bun-types/globals.d.ts | 2 | ||||
-rw-r--r-- | packages/bun-types/ws.d.ts | 4 |
3 files changed, 16 insertions, 0 deletions
diff --git a/packages/bun-types/bun-test.d.ts b/packages/bun-types/bun-test.d.ts index a78c74b85..47380f63c 100644 --- a/packages/bun-types/bun-test.d.ts +++ b/packages/bun-types/bun-test.d.ts @@ -983,6 +983,16 @@ declare module "bun:test" { */ toBeWithin(start: number, end: number): void; /** + * Asserts that a value is equal to the expected string, ignoring any whitespace. + * + * @example + * expect(" foo ").toEqualIgnoringWhitespace("foo"); + * expect("bar").toEqualIgnoringWhitespace(" bar "); + * + * @param expected the expected string + */ + toEqualIgnoringWhitespace(expected: string): void; + /** * Asserts that a value is a `symbol`. * * @example diff --git a/packages/bun-types/globals.d.ts b/packages/bun-types/globals.d.ts index ea73b506d..207f4608a 100644 --- a/packages/bun-types/globals.d.ts +++ b/packages/bun-types/globals.d.ts @@ -733,6 +733,8 @@ interface Process { * On other operating systems, this returns `undefined`. */ constrainedMemory(): number | undefined; + + send(data: any): void; } interface MemoryUsageObject { diff --git a/packages/bun-types/ws.d.ts b/packages/bun-types/ws.d.ts index a14f87edd..fc489006f 100644 --- a/packages/bun-types/ws.d.ts +++ b/packages/bun-types/ws.d.ts @@ -74,6 +74,8 @@ declare module "ws" { WebSocket?: U | undefined; } + interface ServerOption extends WebSocketServerOptions {} + interface AddressInfo { address: string; family: string; @@ -219,4 +221,6 @@ declare module "ws" { listener: (...args: any[]) => void, ): this; } + + var Server: typeof WebSocketServer; } |