In order to migrate our type system over to @types/mdast, we need to first implement the types in myst-spec. This will require codifying our existing spec/schema, and then rebuilding it in the @types/mdast convention.
This change is likely to be breaking to downstream. Internally, we will move to as any casts where appropriate (or better, as as NodeAsAny where type NodeAsAny = any for discoverability) in order to get main compilation to pass.
See #2579 for an example of this (out of date).
Definition of Done
In order to migrate our type system over to
@types/mdast, we need to first implement the types inmyst-spec. This will require codifying our existing spec/schema, and then rebuilding it in the@types/mdastconvention.This change is likely to be breaking to downstream. Internally, we will move to
as anycasts where appropriate (or better, asas NodeAsAnywheretype NodeAsAny = anyfor discoverability) in order to getmaincompilation to pass.See #2579 for an example of this (out of date).
Definition of Done
myst-specis built from@types/mdasttypes.mainand publishmystmd.