You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the online schema to typescript coverter with the package.json schema I get a scripts? prop under CoreProperties with a list of optional props (I removed most of the props for brevity)
My compiler is freaking out because Property 'prepublish' of type 'string | undefined' is not assignable to string index type 'string'. The same goes for the entire list of props. To get around this issue, I had to change the last two lines to:
Using the online schema to typescript coverter with the package.json schema I get a
scripts?
prop under CoreProperties with a list of optional props (I removed most of the props for brevity)My compiler is freaking out because
Property 'prepublish' of type 'string | undefined' is not assignable to string index type 'string'
. The same goes for the entire list of props. To get around this issue, I had to change the last two lines to:And it worked fine.
The text was updated successfully, but these errors were encountered: