Currently the doc indicates this should be serialisable, but the typing is not constrained in any way. We should consider adding a typing like this one:
type Json =
| string
| number
| boolean
| null
| Json[]
| { [key: string]: Json }
;
export interface NovaCommand<TData extends Json> {
// ...
}