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

Version History

VersionDownloads (Last 7 Days)Published
0.5.1186
0.5.01
0.4.52,049
0.4.45,028
0.4.331
0.4.21
0.4.11
0.4.00
0.3.4115
0.3.30
0.3.20
0.3.15
0.3.02
0.2.01,437
0.1.01

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