This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli-server-api 4.8.0 doesn't include TS declarations
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
packages/babel-preset-cli/ts-declarations/react-native-community__cli-server-api/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="ws" /> | ||
declare module '@react-native-community/cli-server-api' { | ||
import http from 'http'; | ||
import { Server as HttpsServer } from 'https'; | ||
|
||
type MiddlewareOptions = { | ||
host?: string; | ||
watchFolders: ReadonlyArray<string>; | ||
port: number; | ||
}; | ||
|
||
export function createDevServerMiddleware( | ||
options: MiddlewareOptions | ||
): { | ||
attachToServer( | ||
server: http.Server | HttpsServer | ||
): { | ||
debuggerProxy: { | ||
server: import('ws').Server; | ||
isDebuggerConnected(): boolean; | ||
}; | ||
eventsSocket: { | ||
reportEvent: (event: any) => void; | ||
}; | ||
messageSocket: { | ||
broadcast: (method: string, params?: Record<string, any> | undefined) => void; | ||
}; | ||
}; | ||
middleware: any; | ||
}; | ||
//# sourceMappingURL=index.d.ts.map | ||
} |