A data bag is an object that has no methods. It's only purpose is to hold data.
It is normally a plain object.
It's structure is normally defined by an interface.
For example:
interface ValidationErrorParams {
reason: string;
}
const myData: ValidationErrorParams = {
reason: "input did not match the supported format",
};