Skip to content

Udemy/Ts/section2/14 #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Aug 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/lecturename-sectionn-n.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: lectureName/sectionN/N
about: 어떤 학습을 했는지 적어주세요.
title: lectureName/sectionN/N
labels: ''
assignees: 4BFC

---

✍LectureName/sectionN/N

🔗Reference
- [참고자료](https://# "참고자료")
- 없다면 지워주세요.

🔥KeyWord
- 강의 핵심 키워드로 소개해주세요.

📝Description
- 무엇을 배웠는지 알려주세요.

📌Summary
- 간단하게 무엇을 느꼈고 배웠는지 앞으로의 계획 등을 서술해주세요.
14 changes: 14 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
✍LectureName/sectionN/N

🔗Reference
- [참고자료](https://# "참고자료")
- 없다면 지워주세요.

🔥KeyWord
- 강의 핵심 키워드로 소개해주세요.

📝Description
- 무엇을 배웠는지 알려주세요.

📌Summary
- 간단하게 무엇을 느꼈고 배웠는지 앞으로의 계획 등을 서술해주세요.
55 changes: 54 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,66 @@
## Rules
- main ~과 format~ 은 변경해서는 안된다.
- 학습한 코드는 recently로 merge한다.
- 강의 Branch를 생성, 작성하는 방법은 `lectureName/sectionN`와 같이 작성한다.
- 강의 Branch를 생성, 작성하는 방법은 `lectureName/sectionN/N`과 같이 작성한다. (ex.UdemyTs/section2/14)
- 학습한 강의 내용 및 정리는 PR에 작성한다.
- issue는 학습한 내용에서 발생한 문제점과 부족한 점을 위주로 작성한다.

## Lecture
- 👨‍💻[CodingDev](https://youtube.com/playlist?list=PLZKTXPmaJk8KhKQ_BILr1JKCJbR0EGlx0&si=wYBdejCaW81DUMUj "코딩앙마-YouTube")
- run vsc (npm run start)
```
//package.json
"start": "ts-node src/index.ts"
```
- 👨‍💻[UdemyTs](https://www.udemy.com/course/best-typescript-21/?couponCode=SKILLS4SALEA "TypeScript-Udemy")
- run vsc (npm run start)
```
::CMD
tsc app.ts
```
<dl>
<details>
<summary>Lecture List</summary>
<dd>
<details>
<summary>Section2: TypeScript 기본& 기본 타입</summary>
<dd>(14) 숫자 문자열 및 불리언 작업하기: #</dd>
<dd>(15) 타입 할당 및 타입 추론하기: #</dd>
<dd>(16) 객체 형태: #</dd>
<dd>(18) 배열 타입: #</dd>
<dd>(19) 튜플 작업하기: #</dd>
<dd>(20) 열거형으로 작업하기: #</dd>
<dd>(21) Any 타입: #</dd>
<dd>(22) 조합 타입: #</dd>
<dd>(23) 리터럴 타입: #</dd>
<dd>(24) 타입 알리어스 / 사용자 정의 타입: #</dd>
<dd>(25) 타입 알리어스 및 객체 타입: #</dd>
<dd>(26) 함수 반환 타입 및 "무효": #</dd>
<dd>(27) 타입의 기능을 하는 함수: #</dd>
<dd>(28) 함수 타입 및 콜백: #</dd>
<dd>(29) 알 수 없는 타입: #</dd>
<dd>(30) 절대 타입: #</dd>
</details>
</dd>
<dd>
<details>
<summary>Section 3</summary>
<dd>-: #</dd>
</details>
</dd>
<dd>
<details>
<summary>Section11: TypeScript와 함께 Webpack 사용하기</summary>
<dd>(153) Webpack 설치하기& 중요 종속성: #</dd>
<dd>(154) 입력& 출력 구성 추가하기: #</dd>
<dd>(155) ts-loader 패키지로 TypeScript 지원 추가하기: #</dd>
<dd>(156) 웹팩 구성(Config) 조정하기: #</dd>
<dd>(157) 설정 완료하기& Webpack-dev-server 추가하기: #</dd>
<dd>(158) 생산 워크플로 추가하기: #</dd>
</details>
</dd>
</details>
</dl>

💻Ts-PlayGround
- [Ts-PlayGround](https://www.typescriptlang.org/ko/play/?#code/Q "TypeScript PlayGround")
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "typescript-lecture",
"version": "0.0.0",
"description": "typescript",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "ts-node src/index.ts",
"build": "tsc --build",
"clean": "tsc --build --clean"
},
"author": "",
"license": "ISC",
"dependencies": {
"typescript": "^5.5.4"
},
"devDependencies": {
"ts-node": "^10.9.2"
}
{
"name": "typescript-lecture",
"version": "0.0.0",
"description": "typescript",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "ts-node src/app.ts",
"build": "tsc --build",
"clean": "tsc --build --clean"
},
"author": "",
"license": "ISC",
"dependencies": {
"typescript": "^5.5.4"
},
"devDependencies": {
"ts-node": "^10.9.2"
}
}
14 changes: 14 additions & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
function add(n1: number, n2: number, showResult: boolean, phrase: string) {
if (showResult) {
console.log(n1 + n2);
} else {
return n1 + n2;
}
}

const number1 = 5;
const number2 = 2.8;
const printResult = true;
const resultPhrase = 'Result is: ';

add(number1, number2, printResult, resultPhrase);
Empty file removed src/index.ts
Empty file.