The change args for a file change.

interface IChangedArgs {
    newValue: null | Partial<Contents.IModel>;
    oldValue: null | Partial<Contents.IModel>;
    type: "new" | "delete" | "rename" | "save";
}

Properties

newValue: null | Partial<Contents.IModel>

The old contents.

oldValue: null | Partial<Contents.IModel>

The new contents.

type: "new" | "delete" | "rename" | "save"

The type of change.