method SourceFile.prototype.onModifiedimport { SourceFile } from "https://dotland.deno.dev/x/ts_morph@22.0.0/mod.ts"; onModified(subscription: (sender: SourceFile) => void, subscribe?: boolean): thisSubscribe to when the source file is modified. Subscribe to when the source file is modified. Parameterssubscription: (sender: SourceFile) => void Subscription. optionalsubscribe: boolean Optional and defaults to true. Use an explicit false to unsubscribe. Returnsthis