Skip to content

Commit

Permalink
Export experimental types (CodecsFactory, RawClientFactory, RawService)
Browse files Browse the repository at this point in the history
  • Loading branch information
kondi committed Mar 21, 2019
1 parent bfc8108 commit f536f49
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/experimental/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type MethodCodecs<Method> = {

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

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

type RawService<Service> = { [MethodName in keyof Service]: RawServiceMethod<Service[MethodName]> };
export type RawService<Service> = {
[MethodName in keyof Service]: RawServiceMethod<Service[MethodName]>
};

type RawClientFactory<ClientFactory> = {
export type RawClientFactory<ClientFactory> = {
[GetterName in keyof ClientFactory]: () => RawService<LooseReturnType<ClientFactory[GetterName]>>
};

Expand Down

0 comments on commit f536f49

Please sign in to comment.