Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
const props = withDefaults(defineProps<{ datalist?: datalist, id?: strnum, idKey?: strnum, valueKey?: strnum, placeholder?: string, }>(), { datalist: () => [] as datalist, idKey: 'id', valueKey: 'value', placeholder: '', });
type User = string | number interface Num { resultedType: string } function superFunction(user: User): Num { return {resultedType: typeof user} }