-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
11 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1 +1,25 @@ | ||
export * from './grpc.node'; | ||
/** | ||
* DO NOT DO A STRAIGHT EXPORT FROM grpc.node.ts | ||
* | ||
* You will break the isomorphic build if you import anything from the bad packages except for the types (using "import type"). | ||
*/ | ||
|
||
import type Client from '@triton-one/yellowstone-grpc'; | ||
import type { | ||
SubscribeRequest, | ||
SubscribeUpdate, | ||
CommitmentLevel, | ||
} from '@triton-one/yellowstone-grpc'; | ||
import type { ClientDuplexStream, ChannelOptions } from '@grpc/grpc-js'; | ||
|
||
export { | ||
ClientDuplexStream, | ||
ChannelOptions, | ||
SubscribeRequest, | ||
SubscribeUpdate, | ||
CommitmentLevel, | ||
Client, | ||
}; | ||
|
||
// Declare the function type without implementation | ||
export declare function createClient(...args: ConstructorParameters<typeof Client>): Client; |