@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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.5.11,353latest

Version History

VersionDownloads (Last 7 Days)Published
0.5.11,353
0.5.04
0.4.57,279
0.4.46,775
0.4.35
0.4.20
0.4.14
0.4.03
0.3.41
0.3.31
0.3.20
0.3.13
0.3.01
0.2.0270
0.1.00

Package Sidebar

Install

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

Weekly Downloads

15,699

Version

0.5.1

License

MIT

Unpacked Size

40 kB

Total Files

16

Last publish

Collaborators

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