Skip to content

Latest commit

 

History

History
 
 

ts-migrate-example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

ts-migrate-example

ts-migrate-example is a basic example of usage of the ts-migrate-server with writing a custom plugin.

We have examples of the three categories of plugins:

We're using the following input:

function mult(first, second) {
    return first * second;
}

and with a config of 3 simple plugins, produce the output:

function tlum(tsrif: number, dnoces: number): number {
  console.log(`args: ${arguments}`)
  return tsrif * dnoces;
}

You can read about codemods here and browse ts-migrate repository for additional examples and tests.

I have an issue, what should I do?

Please file the issue here.

Contributing

See the Contributors Guide.