export animal = {
export interface cat {
tail: boolean;
voice: string;
}
export interface dog {
tail: boolean;
voice: string;
}
}
import {animal} from "@/...."
let dog = {
tail: true,
voice: 'gav'
} as animal.dog
let cat = {
tail: true,
voice: 'meow'
} as animal.cat