export type Bag = T[]; export type Ref = { location: string, index: number } export type RefT = { location: T, index: number } export type BFInstance = | string | number | boolean | null | BFInstance[] | { [key: string]: BFInstance } | Ref