Skip to content

Commit

Permalink
chore: update .prettierignore, format file
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Feb 26, 2024
1 parent 4cd2a72 commit 7049190
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ dist
coverage
docs
tmp
build/rollup-plugin-resolve-extensions/index.js
.yarn
5 changes: 2 additions & 3 deletions src/types/client.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type Client from '../Client'
import type { ContentCodec } from '../MessageContent'

export type GetMessageContentTypeFromClient<C> = C extends Client<infer T>
? T
: never
export type GetMessageContentTypeFromClient<C> =
C extends Client<infer T> ? T : never

export type ExtractDecodedType<C> = C extends ContentCodec<infer T> ? T : never

0 comments on commit 7049190

Please sign in to comment.