putout plugin adds ability to apply as type assertion
npm install @putout/plugin-apply-as-type-assertions[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-apply-as-type-assertions.svg?style=flat&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/plugin-apply-as-type-assertions "npm"
šPutout plugin adds ability to apply as type assertion according to best practices.
Moved to @putout/plugin-typescript.
```
npm i @putout/plugin-apply-as-type-assertions
Rule apply-as-type-assertions is not bundled by default, to enable add to .putout.json:
`json`
{
"rules": {
"apply-as-type-assertions": "on"
}
}
`ts`
const boundaryElement =
`ts``
const boundaryElement1 = e.target as HTMLElement;
MIT