Skip to content

Commit

Permalink
expansion should be done at the last mile; not useful here
Browse files Browse the repository at this point in the history
  • Loading branch information
coffeemug committed Jul 1, 2021
1 parent 4371b51 commit 33bd4d4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-alias-client",
"version": "0.1.15",
"version": "0.1.16",
"description": "> TODO: description",
"author": "Vyacheslav Akhmechet <[email protected]>",
"homepage": "",
Expand Down
2 changes: 1 addition & 1 deletion protocol/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-alias-protocol",
"version": "0.1.15",
"version": "0.1.16",
"description": "> TODO: description",
"author": "Vyacheslav Akhmechet <[email protected]>",
"homepage": "",
Expand Down
2 changes: 1 addition & 1 deletion protocol/src/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type ChannelSpec<Context, ArgSpecT extends t.Mixed, Event> = {

// Helper types to detruct the spec/channel spec
export type ChannelName<SpecT> = keyof SpecT & string;
export type ChannelArgT<SpecT, Name extends ChannelName<SpecT>> = SpecT[Name] extends ChannelSpec<infer _A, infer ArgSpecT, infer _B> ? Expand<OnlyRequired<t.TypeOf<ArgSpecT>>> : never;
export type ChannelArgT<SpecT, Name extends ChannelName<SpecT>> = SpecT[Name] extends ChannelSpec<infer _A, infer ArgSpecT, infer _B> ? OnlyRequired<t.TypeOf<ArgSpecT>> : never;
export type ChannelRetT<SpecT, Name extends ChannelName<SpecT>> = SpecT[Name] extends ChannelSpec<infer _A, infer _B, infer RetT> ? RetT : never;

// New connection
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-alias-server",
"version": "0.1.15",
"version": "0.1.16",
"description": "> TODO: description",
"author": "Vyacheslav Akhmechet <[email protected]>",
"homepage": "",
Expand Down

0 comments on commit 33bd4d4

Please sign in to comment.