Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export *TransportOptions types for connect-node #959

Merged
merged 2 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/connect-node/src/connect-node-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import type {
} from "./node-universal-handler.js";
import { compressionBrotli, compressionGzip } from "./compression.js";

interface ConnectNodeAdapterOptions extends ConnectRouterOptions {
export interface ConnectNodeAdapterOptions extends ConnectRouterOptions {
/**
* Route definitions. We recommend the following pattern:
*
Expand Down
2 changes: 1 addition & 1 deletion packages/connect-node/src/connect-transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { validateNodeTransportOptions } from "./node-transport-options.js";
*
* See createConnectTransport().
*/
type ConnectTransportOptions = NodeTransportOptions & {
export type ConnectTransportOptions = NodeTransportOptions & {
/**
* Base URI for all HTTP requests.
*
Expand Down
2 changes: 1 addition & 1 deletion packages/connect-node/src/grpc-transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { validateNodeTransportOptions } from "./node-transport-options.js";
*
* See createGrpcTransport().
*/
type GrpcTransportOptions = NodeTransportOptions & {
export type GrpcTransportOptions = NodeTransportOptions & {
/**
* Base URI for all HTTP requests.
*
Expand Down
2 changes: 1 addition & 1 deletion packages/connect-node/src/grpc-web-transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { validateNodeTransportOptions } from "./node-transport-options.js";
*
* See createGrpcWebTransport().
*/
type GrpcWebTransportOptions = NodeTransportOptions & {
export type GrpcWebTransportOptions = NodeTransportOptions & {
/**
* Base URI for all HTTP requests.
*
Expand Down
6 changes: 6 additions & 0 deletions packages/connect-node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,21 @@
import "./node-headers-polyfill.js";

export { createGrpcWebTransport } from "./grpc-web-transport.js";
export type { GrpcWebTransportOptions } from "./grpc-web-transport.js";
export { createGrpcTransport } from "./grpc-transport.js";
export type { GrpcTransportOptions } from "./grpc-transport.js";
export { createConnectTransport } from "./connect-transport.js";
export type { ConnectTransportOptions } from "./connect-transport.js";
export { compressionBrotli, compressionGzip } from "./compression.js";
export { connectNodeAdapter } from "./connect-node-adapter.js";
export type { ConnectNodeAdapterOptions } from "./connect-node-adapter.js";

export {
universalRequestFromNodeRequest,
universalResponseToNodeResponse,
} from "./node-universal-handler.js";

export { createNodeHttpClient } from "./node-universal-client.js";
export type { NodeHttpClientOptions } from "./node-universal-client.js";
export { Http2SessionManager } from "./http2-session-manager.js";
export type { Http2SessionOptions } from "./http2-session-manager.js";
2 changes: 1 addition & 1 deletion packages/connect-node/src/node-universal-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { Http2SessionManager } from "./http2-session-manager.js";
* Options for creating an UniversalClientFn using the Node.js `http`, `https`,
* or `http2` module.
*/
type NodeHttpClientOptions =
export type NodeHttpClientOptions =
| {
/**
* Use the Node.js `http` or `https` module.
Expand Down
Loading