Draft
Conversation
Co-authored-by: ChALkeR <291301+ChALkeR@users.noreply.github.com>
Co-authored-by: ChALkeR <291301+ChALkeR@users.noreply.github.com>
Co-authored-by: ChALkeR <291301+ChALkeR@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Re-export existing DOM and Node.js types
Add TypeScript definitions re-exporting standard DOM/Node.js types
Feb 5, 2026
Co-authored-by: ChALkeR <291301+ChALkeR@users.noreply.github.com>
Author
Done. Added individual type definition files for each export:
Updated package.json exports to specify types for each submodule. Commit: 4c3b069 |
ChALkeR
reviewed
Feb 5, 2026
util.d.ts
Outdated
Comment on lines
3
to
6
| // Re-export standard binary data types | ||
| export type ArrayBuffer = globalThis.ArrayBuffer | ||
| export type Uint8Array = globalThis.Uint8Array | ||
| export type DataView = globalThis.DataView |
Co-authored-by: ChALkeR <291301+ChALkeR@users.noreply.github.com>
ChALkeR
reviewed
Feb 5, 2026
fetch.d.ts
Outdated
| export type RequestInfo = globalThis.RequestInfo | ||
| export type RequestInit = globalThis.RequestInit | ||
| export type Blob = globalThis.Blob | ||
| export type ReadableStream<R = any> = globalThis.ReadableStream<R> |
Collaborator
There was a problem hiding this comment.
@copilot don't export other useless things too
Author
There was a problem hiding this comment.
Removed. Standard DOM/Web API types (Response, Request, Headers, WebSocket, MessageEvent, etc.) are already available through TypeScript's lib definitions and don't need to be re-exported. Only package-specific interfaces and function signatures remain. Commit: 944d66f
…cket.d.ts Co-authored-by: ChALkeR <291301+ChALkeR@users.noreply.github.com>
Copilot
AI
changed the title
Add TypeScript definitions re-exporting standard DOM/Node.js types
Add TypeScript definitions for package exports
Feb 5, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds TypeScript type definitions to the @exodus/replay package, providing type safety for TypeScript users.
Changes Made
Individual Type Definition Files
Created separate
.d.tsfiles for each export module:fetch.d.ts: Type definitions for fetch-related exportsFetchRecorderOptionsinterfacefetchRecorder,fetchReplayer,fetchApiwebsocket.d.ts: Type definitions for WebSocket-related exportsWebSocketRecorderOptionsandWebSocketReplayerOptionsinterfacesWebSocketRecorder,WebSocketReplayerutil.d.ts: Type definitions for utility exportsPrettyJSONOptionsinterfaceprettyJSONindex.d.ts: Main entry point that re-exports types and functions from individual modulesPackage Configuration
package.json: Updated exports withtypesfield for each submodule, enabling proper TypeScript resolution for both main and submodule imports.eslintignore: Added*.d.tsto skip linting TypeScript definition filesDesign Decisions
The type definitions only export package-specific interfaces and function signatures. Standard DOM/Web API types (like
Response,Request,Headers,WebSocket,MessageEvent, etc.) are not re-exported because:Usage
TypeScript users now get full type safety for both main and submodule imports:
Testing
The changes are purely additive type definitions with no runtime impact.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.