From 6816735404350ece29b9bce40b2addb396dcba8b Mon Sep 17 00:00:00 2001 From: Nick Excell Date: Wed, 3 Feb 2021 15:12:57 +0000 Subject: [PATCH] Add afterDeclarations to getCustomTransformers in README.md (#1248) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 65d4f2051..7b313efcb 100644 --- a/README.md +++ b/README.md @@ -344,7 +344,7 @@ These options should be functions which will be used to resolve the import state #### getCustomTransformers | Type | |------| -| ` (program: Program) => { before?: TransformerFactory[]; after?: TransformerFactory[]; } ` | +| ` (program: Program) => { before?: TransformerFactory[]; after?: TransformerFactory[]; afterDeclarations?: TransformerFactory[]; } ` | Provide custom transformers - only compatible with TypeScript 2.3+ (and 2.4 if using `transpileOnly` mode). For example usage take a look at [typescript-plugin-styled-components](https://github.com/Igorbek/typescript-plugin-styled-components) or our [test](test/comparison-tests/customTransformer).