Skip to main content
Version: v1

InboundAttachMessage TypeAlias

This type should be used when reading an incoming attach op, but it should not be used when creating a new attach op. Older versions of attach messages could have null snapshots, so this gives correct typings for writing backward compatible code.

Signature

export declare type InboundAttachMessage = Omit<IAttachMessage, "snapshot"> & {
snapshot: IAttachMessage["snapshot"] | null;
};