[Custom Element VS Code Integration] `descriptionSrc` configuration docs
Closed this issue ยท 3 comments
I have CEM file that in the module it do have another custom properties that i added as part of description, so i need to use specific property for it, in the README file on this vs-code-integration
package,
it does have the options for the descriptionSrc
and it does show the type of "description" | "summary" | string
, but it actually only accept "description" | "summary", based on this base type
So it would return typescript error that it does not allow any string property that i want to use.
Can you update the type to be something like this
export interface BaseOptions {
// ...
/** The property name from the component object that you would like to use for the description of your component */
descriptionSrc?: "description" | "summary" | ( string & {}) ;
or you can take a look on the type-fest
package on LiteraUnion
https://github.com/sindresorhus/type-fest/blob/main/source/literal-union.d.ts
I think we should be able to accommodate this.
I just deployed a change for this. Let me know if you run into any issues.
It works now, thanks, no more @ts-ignore for me ๐