250x250
Notice
Recent Posts
Recent Comments
- Today
- Total
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- mongoose
- double quote
- findByIdAndDelete
- flutter
- EC2
- til
- async
- sequelize
- atlas
- jsonwebtoken
- css
- Node.js
- moment
- nginx
- await
- AWS
- MYSQL
- certbot
- single quote
- clipBehavior
- mongodb
- Nodejs
- TypeScript
- TailwindCSS
- JavaScript
- Express
- https
- RDS
- Find
- wil
Link
Archives
반응형
목록interface (1)
기억 휘발 방지소
[TypeScript] 인터페이스 (Interface)
인터페이스(Interface)는 타입 체크를 위해 변수, 함수, 클래스에 사용할 수 있다. ES6에서는 지원하지 않고 TypeScript에서는 지원한다. ✔️ 인터페이스 interface User { name: string; age: number; } let user: User = { name: "Kim", age: 20, }; ✔️ 함수에서 인터페이스 사용하기 interface Add { (n1: number, n2: number): number; } const addFunction: Add = function (a, b) { return a + b; }; console.log(addFunction(1, 2)); // 3 ✔️ 클래스와 인터페이스 interface Car { name: string; c..
Web/TypeScript
2022. 2. 11. 17:42
반응형