Preview:```ts
import fs from "node:fs"
type CB = (e: unknown, r: unknown) => void
function wrap<
Fn extends (a1: A1, a2: A2, cb: CB) => void,
A1 = unknown,
A2 = unknown
(fn: Fn, a1: A1, a2: A2) {
fn(a1, a2, (_err, file) => {})
}
function _main() {
const res = wrap(fs.readFile, "foo.txt", {
encoding: "utf8",
})
...```
You can choose specific lines to embed by selecting them before copying the link.