Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
Tags
- 성능최적화
- 타입스크립트
- 누구나 자료구조와 알고리즘
- CSS
- returnType
- javascript
- NonNullable
- 반복줄이기
- vue.js
- 개발콘텐츠
- 2022
- React.js
- React Native
- Chart.js
- 공통컴포넌트
- react
- TSDoc
- 리액트
- 커스텀
- reactjs
- 제네릭
- const 단언문
- JS console
- 폰트적용하기
- click and drag
- 타입좁히기
- 티스토리꾸미기
- typescript
- utilty type
- 레이아웃쪼개기
Archives
- Today
- Total
몽땅뚝딱 개발자
[Typescript] playground 본문
◽ 테스트 사이트
TS Playground - An online editor for exploring TypeScript and JavaScript
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.
www.typescriptlang.org
◽ 코드 변환해보기
class Student {
name: string;
constructor(name: string) {
this.name = name;
}
}
📄 ES5로 변환
"use strict";
var Student = /** @class */ (function () {
function Student(name) {
this.name = name;
}
return Student;
}());
📄 ES6+로 변환
"use strict";
class Student {
constructor(name) {
this.name = name;
}
}
'Development > Typescript' 카테고리의 다른 글
[TypeScript] 유니온 타입 vs 인터섹션 타입 (0) | 2022.06.06 |
---|---|
[TypeScript] 인터페이스 (0) | 2022.06.06 |
[TypeScript] 변수와 함수의 타입 정의 (0) | 2022.06.06 |
[TypeScript] 설정파일 (0) | 2022.06.06 |
[TypeScript] 타입스크립트란 (0) | 2022.06.05 |
Comments