Deno Import STL Types

1.0.0Last update Dec 1, 2024
by@lovelindhoni

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

Before

function foo(closer: Deno.Closer) {
// ...
}

After

import { Closer } from "jsr:@std/io/types";
function foo(closer: Closer) {
// ...
}

The following Typescript tinterfaces are replaced:

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

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now