@rnx-kit/metro-plugin-typescript
TypeScript icon, indicating that this package has built-in type declarations

0.4.4 • Public • Published

@rnx-kit/metro-plugin-typescript

Build npm version

@rnx-kit/metro-plugin-typescript adds type checking to Metro.

Usage

 const { makeMetroConfig } = require("@rnx-kit/metro-config");
+const { TypeScriptPlugin } = require("@rnx-kit/metro-plugin-typescript");

 module.exports = makeMetroConfig({
   serializer: {
+    experimentalSerializerHook: TypeScriptPlugin(),
   },
 });

Options

Key Type Default Description
throwOnError boolean false Whether to throw when errors are found.

Readme

Keywords

none

Package Sidebar

Install

npm i @rnx-kit/metro-plugin-typescript

Weekly Downloads

14,827

Version

0.4.4

License

MIT

Unpacked Size

57.2 kB

Total Files

26

Last publish

Collaborators

  • kelset
  • hansenyy
  • jasonvmorse
  • acoates
  • rnbot
  • tido64
  • rnsdkbot