Skip to content
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

[TypeScript & Module Typing] 병민(윤병인) 미션 제출합니다. #7

Merged
merged 39 commits into from
Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
a7a1110
chore: gitignore 추가
airman5573 Sep 26, 2022
026d41f
chore: tsd command 추가
airman5573 Sep 26, 2022
e4aa3ee
typo: 모듈 이름 및 lint적용
airman5573 Sep 26, 2022
d7c2e1f
feat: 파일 위치 이동
airman5573 Sep 26, 2022
710990f
test: TQuery test 추가
airman5573 Sep 26, 2022
f8aff81
feat: 함수를 파일별로 분리한다
airman5573 Sep 26, 2022
51b9ddc
feat: isNumber 유틸 함수 추가
airman5573 Sep 27, 2022
faeaf4b
feat: tQuery구현 및 테스트 추가
airman5573 Sep 27, 2022
e1dd875
chore: tsd 경로 수정
airman5573 Sep 27, 2022
a71f4ac
feat: TQuery 구현
airman5573 Sep 27, 2022
d4171e7
feat: isNull 테스트 추가
airman5573 Sep 27, 2022
4b5153e
feat: isNull 구현 추가
airman5573 Sep 27, 2022
bfaccad
feat: isNull 구현부 추가
airman5573 Sep 27, 2022
f0444b5
feat: 타입검사의 강도를 낮춘다
airman5573 Sep 27, 2022
fbe56b1
feat: isNil type test 추가
airman5573 Sep 27, 2022
0c7d128
feat: isNil 구현 및 api 테스트
airman5573 Sep 27, 2022
b205bae
feat: isFunction 타입 테스트 추가
airman5573 Sep 27, 2022
8d232c3
feat: isFunction 기능 테스트 추가
airman5573 Sep 27, 2022
a4a6160
feat: isFunction type 개선
airman5573 Sep 27, 2022
455467c
feat: isFunction type test추가
airman5573 Sep 27, 2022
4eb97f1
feat: throttle & debounce api test 추가
airman5573 Sep 27, 2022
a46d13b
feat: memoize 구현 및 테스트 추가
airman5573 Sep 27, 2022
66a6c03
clean: console.log 삭제
airman5573 Sep 27, 2022
55171a0
feat: TQuery관련 테스트 추가
airman5573 Sep 27, 2022
151e990
feat: shuffle type test추가
airman5573 Sep 27, 2022
ecfb517
feat: shuffle 기능 구현 및 테스트 추가
airman5573 Sep 27, 2022
285fb63
feat: pick type test 추가
airman5573 Sep 27, 2022
dac93e0
feat: pick 구현 및 테스트 추가
airman5573 Sep 27, 2022
01ecf24
feat: omit type test 추가
airman5573 Sep 27, 2022
412c390
feat: omit 구현 및 테스트 추가
airman5573 Sep 27, 2022
6310f36
feat: fetch 함수 추가
airman5573 Sep 27, 2022
425d5d0
feat: fetch 함수 추가
airman5573 Sep 27, 2022
7518338
merge
airman5573 Sep 27, 2022
5b0996f
feat: clickOutside 구현 추가
airman5573 Sep 27, 2022
6ac4fde
fix: addEventLitener에 handler를 적용한다
airman5573 Sep 29, 2022
9cae053
refactor: return을 더 짧게 작성한다
airman5573 Sep 29, 2022
6ece090
cache타입을 수정한다
airman5573 Sep 29, 2022
6ca0077
refactor: type 단일 출처 유지
airman5573 Sep 29, 2022
ad2340a
chore: 불필요한 설정을 제거한다
airman5573 Sep 29, 2022
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
39 changes: 0 additions & 39 deletions __tests__/api.test.ts

This file was deleted.

10 changes: 0 additions & 10 deletions __tests__/type.test.ts

This file was deleted.

6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
presets: [
["@babel/preset-env", { targets: { node: "current" } }],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

보니까 babel과 tsconfig에서 모두 버전에 대한 옵션을 지정해주셨던데, 둘의 차이가 무엇인지 설명해주실 수 있을까요?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

babel로 컴파일하면 babel의 target을 사용할것이고
tsconfig의 target은 타입스크립트로 컴파일할때 사용합니다!

babel는 typescript파일을 jest로 테스트할때 필요해서 설정했습니다 :D
jest 설정

"@babel/preset-typescript",
],
};
Loading