Output
The outputs are:
workex
directory containing the library used by the generated codeinterfaces
directory containing:- One
Foo.send.ts
andFoo.recv.ts
for eachexport interface Foo
send
is consumed by the side that calls theFoo
interface, by using theFooClient
classrecv
is consumed by the side that implements theFoo
interface, by callingbindFooHost
function
- One
sides
directory containing one.ts
file per side declared with@workex:send
or@workex:recv
annotations in the input. See TS Interface Input for more information.
An example directory tree might look like this after running workex:
input.ts (this is the input file)
workex/
index.ts
... other files
interfaces/
Foo.send.ts
Foo.recv.ts
Bar.send.ts
Bar.recv.ts
sides/
client.ts
worker.ts
By default, a .gitignore
will also be generated
in the output to ignore the output directories