Vue mixins with typescript

this is how i write a mixin, because I need to pass data from child to father(the mixin)

is there other way that can achieve this in typescript? because in js, its pretty simple, i can just create a factory function that returens a mixin object.