티스토리 뷰
/* export type */
export type Name = string;
export let age = 20;
/* import type */
import { Name, age } from './exportFile';
let 변수: Name = 'kim';'Language > TypeScript' 카테고리의 다른 글
| [TypeScript] Tuple Type (0) | 2023.07.11 |
|---|---|
| [TypeScript] Generic (0) | 2023.07.11 |
| [TypeScript] public, private, protected, static 키워드 (0) | 2023.07.11 |
| [TypeScript] Never Type (0) | 2023.07.11 |
| [TypeScript] rest파라미터, destructuring (1) | 2023.07.11 |
댓글
