@rnx-kit/metro-plugin-typescript
v0.5.1
Published
Metro plugin for TypeScript type validation
Downloads
40,728
Keywords
Readme
@rnx-kit/metro-plugin-typescript
@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. |