interface SrcInfo {
    [srcInfoSymbol]: true;
    contents: string;
    file: null | string;
    interval: Interval;
    origin: ItemOrigin;
    toJSON: (() => object);
}

Properties

[srcInfoSymbol]: true

Tag so that custom snapshot serializer can distinguish it

contents: string
file: null | string
interval: Interval
origin: ItemOrigin
toJSON: (() => object)

toJSON method is provided, so that it's not serialized into snapshots