Skip to content

Commit f536f49

Browse files
committed
Export experimental types (CodecsFactory, RawClientFactory, RawService)
1 parent bfc8108 commit f536f49

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/experimental/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type MethodCodecs<Method> = {
3535

3636
type ServiceCodecs<Service> = { [MethodName in keyof Service]: MethodCodecs<Service[MethodName]> };
3737

38-
type CodecsFactory<ClientFactory> = {
38+
export type CodecsFactory<ClientFactory> = {
3939
[GetterName in keyof ClientFactory]: () => ServiceCodecs<
4040
LooseReturnType<ClientFactory[GetterName]>
4141
>
@@ -46,9 +46,11 @@ type RawServiceMethod<Method> = (
4646
metadata?: grpc.Metadata,
4747
) => Observable<SerializedMessage<ResponseType<Method>>>;
4848

49-
type RawService<Service> = { [MethodName in keyof Service]: RawServiceMethod<Service[MethodName]> };
49+
export type RawService<Service> = {
50+
[MethodName in keyof Service]: RawServiceMethod<Service[MethodName]>
51+
};
5052

51-
type RawClientFactory<ClientFactory> = {
53+
export type RawClientFactory<ClientFactory> = {
5254
[GetterName in keyof ClientFactory]: () => RawService<LooseReturnType<ClientFactory[GetterName]>>
5355
};
5456

0 commit comments

Comments
 (0)