Module

x/ts_morph/mod.ts>SourceFile#onModified

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
method SourceFile.prototype.onModified
import { SourceFile } from "https://dotland.deno.dev/x/ts_morph@22.0.0/mod.ts";

Subscribe to when the source file is modified.

Parameters

subscription: (sender: SourceFile) => void
  • Subscription.
optional
subscribe: boolean
  • Optional and defaults to true. Use an explicit false to unsubscribe.