Vue typescript and props - TS2339: Property 'dob' does not exist on type '{ type IPeople }'

I have a type

export interface IPeople {
  id: number
  name: string
  dob: string
}

I am passing it as a prop

<script lang="ts" setup>

    const { people } = defineProps<{
      people: {
        type: IPeople
      }
    }>()


const day = people.dob.split(' ')[0]

When using it I get the error

TS2339: Property ‘dob’ does not exist on type ‘{ type IPeople }’ do I need to cast it?

I’m not a TypeScript expert, but I think it should be:

const { people } = defineProps<{
  people: IPeople
}>()