Vue 컴포넌트 prop 에 typescript 타입 적용 시키기
Post
원문 보기 →Vue 컴포넌트 prop 에 typescript 타입 적용 시키기
1. typescript 모델 코드 export interface SelectItem { id: string; text: string; extra?: object;} 2. Vue 컴포넌트 코드 props: { additionalOptions: Array as () => Array,}
1. typescript 모델 코드 export interface SelectItem { id: string; text: string; extra?: object;} 2. Vue 컴포넌트 코드 props: { additionalOptions: Array as () => Array,}