Skip to content

Latest commit

 

History

History
77 lines (70 loc) · 2.54 KB

data-bag.md

File metadata and controls

77 lines (70 loc) · 2.54 KB

Data Bag

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",
};