@types/prettier package and had problems.Definitions by: in index.d.ts) so they can respond.Prettier common example: https://github.com/prettier/prettier/blob/810325daf685173f5f43e7ad1ac7603c4687a6d1/src/common/common-options.js
Plugin example: https://github.com/prettier/plugin-pug/blob/c2dcc5729b89423ee13fa4bee583024cb3fcb682/src/options/index.ts#L67
@fisker Can you tell me if SupportOption[] is even valid or if this is an outdated thing?
Can I therefore completely rewrite the definitions or do I have to support this array variant as well?
I'm sorry, I'm not familiar with this part. But I guess it should have something to do with vnopts.
@fisker Do you know who in prettier's core team could help here?
I'm just starting to explore prettier's code right now...
I think @ikatyang can help.
It's implemented using arrays internally, but the external interfaces are objects. Didn't remember why I wrote it this way. 馃槄
@ikatyang So the declarations are indeed just wrong?
I currently need to use as any here
Yes, it seems to be the case.