Skip to content

Commit 23f4389

Browse files
authored
fix: missing client types (#142)
1 parent 358dd31 commit 23f4389

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ declare global {
1515
const RESOURCE_QUERY: string;
1616
}
1717

18-
declare interface CommunicationClient {
18+
export interface CommunicationClient {
1919
onOpen(fn: (...args: unknown[]) => void): void;
2020
onClose(fn: (...args: unknown[]) => void): void;
2121
onMessage(fn: (...args: unknown[]) => void): void;
2222
}
2323

24-
declare interface CommunicationClientConstructor {
24+
export interface CommunicationClientConstructor {
2525
new (url: string): CommunicationClient; // Defines a constructor that takes a string and returns a GreeterInstance
2626
}

docs/migrate-v1-to-v2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The minimum supported Node.js version is now `^20.19.0 || >=22.12.0`.
1414

1515
`@rspack/dev-server` v2 is designed to work with Rspack v2. Rspack v1 is no longer supported in v2.
1616

17-
## Pure ESM package
17+
### Pure ESM package
1818

1919
`@rspack/dev-server` is now published as **pure ESM** package.
2020

0 commit comments

Comments
 (0)