import { omit, object, string } from '../../../src'

export const Struct = omit(
  object({
    name: string(),
    address: object({
      street: string(),
      city: string(),
    }),
  }),
  ['name']
)

export const data = {
  address: {
    street: 123,
    city: 'Springfield',
  },
}

export const failures = [
  {
    value: 123,
    type: 'string',
    refinement: undefined,
    path: ['address', 'street'],
    branch: [data, data.address, data.address.street],
  },
]
