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

TS 적용하기 #8

Open
zwonlala opened this issue Aug 25, 2021 · 3 comments
Open

TS 적용하기 #8

zwonlala opened this issue Aug 25, 2021 · 3 comments

Comments

@zwonlala
Copy link
Owner

프로젝트가 더 커지기 전에 TS를 적용시킨다

@zwonlala
Copy link
Owner Author

https://www.freecodecamp.org/news/how-to-add-typescript-to-a-javascript-project/

위 글의

[How to convert a JavaScript application to support TypeScript.] 부분 참고하기

zwonlala added a commit that referenced this issue Sep 13, 2021
@zwonlala
Copy link
Owner Author

"how to make js project using TS"

zwonlala added a commit that referenced this issue Sep 18, 2021
함수에 파라미터 타입과 리턴 타입 지정
zwonlala added a commit that referenced this issue Sep 18, 2021
zwonlala added a commit that referenced this issue Oct 4, 2021
zwonlala added a commit that referenced this issue Oct 4, 2021
- Turn off "strictNullChecks" at tsconfig.json
# 이거 해제 안하면, string 과 같은 타입에 null, undefined 값 자동으로 할당 못함
# https://feel5ny.github.io/2017/11/17/Typescript_04/ 문서의 "1-5-1. undefined & null are subtypes of all other types" 부분 참고

- require 사용하던 부분 import 사용하는 구조로 변경
@zwonlala
Copy link
Owner Author

zwonlala commented Oct 4, 2021

strictNullChecks 관련하여 찾아본 글

type anotation 이 뭔가요?

zwonlala added a commit that referenced this issue Oct 4, 2021
# https://mariusschulz.com/blog/strict-property-initialization-in-typescript
strictPropertyInitialization 사용하기 위해서는 strictNullChecks가 설정되어야 함!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant