12 lines
129 B
TypeScript
12 lines
129 B
TypeScript
interface SubConsumer {
|
||
post(string)
|
||
}
|
||
|
||
interface PubSub {
|
||
pub(v:string):boolean
|
||
close()
|
||
}
|
||
|
||
export { PubSub, SubConsumer };
|
||
|