본문 바로가기

typescript

(3)
Jenkins로 CI/CD Pipeline 구축하기 - 11. NPM build Jenkins로 CI/CD Pipeline 구축하기 - 10. Jenkins와 Sonarqube 연동 Jenkins로 CI/CD Pipeline 구축하기 - 9. Docker에 Sonarqube 설치하기 Jenkins로 CI/CD Pipeline 구축하기 - 8. JenkinsFile 생성 대쉬보드 - 만들어둔 파이프라인 - Configure 선택해주세요. Behaviours 항목에.. code00.tistory.com 이전 글 보기 저는 nextjs-typescript로 작업을 할거기 때문에 nextjs 기준으로 설치하겠습니다. 제일먼저 nextjs를 현재파일에 (.) 설치해줍니다. 다음과 같이 Jenkinsfile 코드를 작성해주세요. gitea에 push해주고 젠킨스를 확인해보겠습니다. 무사히 빌드..
Typescript Type vs interface 확장하는 방법 interface UserInterface { id: number name: string } interface InfoInterface extends UserInterface { age: number } type UserType { id: number name: string } type InfoType = UserType & { age: number } 선언적 확장 (선언병합) type은 새로운 속성을 추가하기 위해서 다시 같은 이름으로 선언할 수 없지만, interface는 항상 선언적 확장이 가능합니다. interface Window { title: string; } interface Window { ts: import("typescript"); } // 같은 interface 명으로 ..
JSON TypeScript TypeError JSON TypeScript TypeError TypeError: the JSON object must be str, not 'type' 해결방법 JSON.stringify() let data = JSON.parse(JSON.stringify(eventData)); JSON.parse(string) let data = JSON.parse(eventData as string);