Twoslash for ArkTS (.ets), markup for generating rich type information in your documentations ahead of time.
npm install @arkts/twoslash[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![bundle][bundle-src]][bundle-href]
[![JSDocs][jsdocs-src]][jsdocs-href]
[![License][license-src]][license-href]
A markup format for ArkTS (.ets) code, ideal for creating self-contained code samples which let the ArkTS compiler do the extra leg-work. It is a fork of the Twoslash project, but adapted for ArkTS.
MIT License © Orta Therox, Anthony Fu, Microsoft Corporation, ArkCode contributors
[npm-version-src]: https://img.shields.io/npm/v/@arkts/twoslash?style=flat&colorA=161514&colorB=EAB836
[npm-version-href]: https://npmjs.com/package/@arkts/twoslash
[npm-downloads-src]: https://img.shields.io/npm/dm/@arkts/twoslash?style=flat&colorA=161514&colorB=E66041
[npm-downloads-href]: https://npmjs.com/package/@arkts/twoslash
[bundle-src]: https://img.shields.io/bundlephobia/minzip/@arkts/twoslash?style=flat&colorA=161514&colorB=45627B&label=minzip
[bundle-href]: https://bundlephobia.com/result?p=@arkts/twoslash
[license-src]: https://img.shields.io/github/license/ohosvscode/twoslash.svg?style=flat&colorA=161514&colorB=45627B
[license-href]: https://github.com/ohosvscode/twoslash/blob/main/LICENSE
[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-161514?style=flat&colorA=161514&colorB=EAB836
[jsdocs-href]: https://www.jsdocs.io/package/@arkts/twoslash