atom-archive / xray

An experimental next-generation Electron-based text editor
MIT License
8.48k stars 235 forks source link

Super duper TS #143

Closed joshaber closed 5 years ago

joshaber commented 5 years ago

A few more changes to the TS wrapper:

  1. Export all the types so consumers can use them.
  2. All the exposed fields are conceptually readonly. (I think! Correct me if I'm wrong!)
  3. The file types are actually Directory | Text not Directory | File, judging by: https://github.com/atom/xray/blob/a7ec528e6c93814d7e1343c72832f58d620cf98c/memo_core/src/work_tree.rs#L127-L130
nathansobo commented 5 years ago

Sorry for exporting our TypeScript ignorance. This is the trouble with us not being super involved on the other side of this API boundary. Hopefully we'll work through these issues quickly. Published as 0.1.5.

joshaber commented 5 years ago

No worries, these are just the initial kinks we gotta work out!