Skip to content

Instantly share code, notes, and snippets.

@longlho
Last active March 31, 2019 19:29
Show Gist options
  • Save longlho/7c5b809cf049f6e33aa39f210fc33ed2 to your computer and use it in GitHub Desktop.
Save longlho/7c5b809cf049f6e33aa39f210fc33ed2 to your computer and use it in GitHub Desktop.
transformer entry point
export function transform(opts: YourTransformerOpts): ts.TransformerFactory<ts.SourceFile> {
return ctx => sf => transformNode(sf, opts)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment