File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ import {
11
11
12
12
const msgidThreshold = 2 ** 32 ;
13
13
14
- /** @internal */
15
- export type Session = {
14
+ type Session = {
16
15
send : ( data : Command | Message ) => Promise < void > ;
17
16
recv : ( msgid : number ) => Promise < Message > ;
18
17
} ;
Original file line number Diff line number Diff line change 8
8
} from "@std/testing/mock" ;
9
9
import { Indexer } from "@lambdalisue/indexer" ;
10
10
import { buildMessage , type Message } from "./message.ts" ;
11
- import { Client , type Session } from "./client.ts" ;
11
+ import { Client } from "./client.ts" ;
12
+
13
+ type Session = ConstructorParameters < typeof Client > [ 0 ] ;
12
14
13
15
const session : Session = {
14
16
send : ( ) => unimplemented ( ) ,
Original file line number Diff line number Diff line change 1
- export { Client } from "./client.ts" ;
1
+ export * from "./client.ts" ;
2
2
export * from "./message.ts" ;
3
3
export * from "./session.ts" ;
You can’t perform that action at this time.
0 commit comments