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

0.5.1 • 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

8,857

Version

0.5.1

License

MIT

Unpacked Size

40 kB

Total Files

16

Last publish

Collaborators

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