L

deno-import-STL-types

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

This codemod updates deprecated Deno typescript interfaces in your codebase. It
automatically imports the necessary typscript interfaces from the standard
library

Before

ts

After

ts

The following Typescript tinterfaces are replaced:

  • Deno.ReaderReader
  • Deno.ReaderSyncReaderSync
  • Deno.SeekerSeeker
  • Deno.SeekerSyncSeekerSync
  • Deno.WriterWriter
  • Deno.WriterSyncWriterSync
  • Deno.CloserCloser

Ready to contribute?

Build your own codemod and share it with the community.