참고자료https://medium.com/@warkiringoda/typescript-best-practices-2021-a58aee199661타입은 TS에서 코딩할 때 갖는 장점 중 하나이다.TS에서 데이터 유형을 정의하면 실수로 발생할 수 있는 이상한 런타
type Guard is a feature of TypeScript that automatically narrows down the scope of types.A good use of typeguard is to avoid type assertion code.types
this is because of type inferenceif you typeof , declared more strictlyof course you have to write the type if you want, but type inference is possibl
this is the new way of decision to typereferenceyou need to understand about extends calculation of typescript for understand conditional typeTypeScri
class , inheritance , method override , access restrictor , public , private , protected , readonly , gettter , setter , static , abstract class
interfaces are usually used to define the necessary methods before implementing a class.optional properties are properties that are not required in an
to understand this in TypeScript , you should be understand Javascript this ok?when called using the new keyword, this in the function Counter points
The type of variable to store the function can use an arrow symbol
https://hyunseob.github.io/2017/01/14/typescript-generic/https://www.typescriptlang.org/docs/handbook/2/generics.htmli wanted to use the con
i don't know why do this error occur?? please....search googlereferenceI wrote the above in lib of tsconfig.json so, I changed es2020 in lib to "targe
typescript is open source programming language developed by microsoft.install typescript and so onnpm install -g typescriptnpm install express @types/
07.16infact , if you used java you know that float is not number ,In other words , it is not int but , typescript uses integers
Referenceshttps://sddev.tistory.com/91https://www.npmjs.com/package/ts-nodeand i recommand global installand i use ts-node test.ts see ya :)
url 을 가져오고 , function 을 실행하는 파일을 만들것이다.이러한 파일은 controller 이다 nest js 라는 프레임워크를 사용하고 있기때문에 cli 를 설치했었다.nest 를 terminal 에 입려하게 되면 , 우리가 사용할수있는것들이 출력하게되는
https://docs.nestjs.com/효율적이고 확장 가능한 Node.js 서버 측 애플리케이션을 구축하기 위한 프레임 워크이다순수 JavaScript 로 개발을 할 수 있고 , TypeScript 를 사용할 수도 있고 , OOP , 함수형 프로그래밍 ,
→ Open in Slid인터페이스는 클래스를 구현하기 전에 필요한 메서드를 정의하는 용도로 사용합니다.타입스크립트에서는 좀 더 다양한 것들을 정의하는데 사용한다 .인터페이스 imageage 는 속성이 number 이기때문에 문자열을 넣을려고 하면 에러가 발생한다.선택
인프런 이재승 님 강의를 보고 작성했습니다.node js 를 우선적으로 설치를 해야한다.https://nodejs.org/ko/그후에 npm init -y 를 입력해주면 된다.그럼 간단히 package.json 파일이 만들어 진다.npm install typ