jgm / djot.js

JavaScript implementation of djot
MIT License
141 stars 15 forks source link

Re-export types from ast submodule #56

Closed matklad closed 6 months ago

matklad commented 1 year ago

Right now, AST types aren't actually accessible to consumers of djot, as they aren't re-exported from the ast.ts file, and only index is visible downstream.

I had to update typescript as export type * seems to be a fairly new thing.

matklad commented 1 year ago

I guess we can as well just manually list all the types here?

matklad commented 1 year ago

reverted typescript update, explicit listing seems more readable for consumer.

matklad commented 6 months ago

@jgm could you take a look here? I am trying to use djot in a new context, and inability to name ast types makes writing overrides somewhat painful.