Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
Sorry for not using the template, it didn't seem to apply in this case. This ticket is related to#66. Feel free to close if you think it is covered by other tickets.
TypeScript have merged in a new featureas const
(slated for TypeScript 3.4, seemicrosoft/TypeScript#29510). This should get around many of the times where I need to say things like:
return{type:ChunkContents.LINK,content:linkMatch[2],ref:linkMatch[1],}as{type:ChunkContents.LINK;content:string;ref:string;};
It would be great to get the ruleno-object-literal-type-assertion
to supportas const
but disallowas someOtherType
(at least as an option).