Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
if (el && el instanceof HTMLElement)
const activeClientChange = reactive<{client: null | INewClient}>({ client: null })
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} }