You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Interfaces.ts 497B

12345678910111213141516171819
  1. import * as T from "./Types";
  2. import * as I from "./Interfaces"
  3. export interface Exporter{
  4. name: T.Name
  5. localRPCs() : T.RPC[]
  6. publicRPCs() : T.RPC[]
  7. }
  8. export interface Socket {
  9. port: number
  10. hook: (rpcname: T.Name, ...args: T.Any[]) => I.Socket
  11. unhook: (rpcname:T.Name) => I.Socket
  12. call: (rpcname:T.Name, ...args: T.Any[]) => Promise<T.Any>
  13. fire: (rpcname:T.Name, ...args: T.Any[]) => Promise<T.Any>
  14. on: T.OnFunction
  15. destroy: ()=>void
  16. close: ()=>void
  17. }