development2 Building Cross-platform Mobile Apps with React Native and Typescript Building Cross-platform Mobile Apps with React Native and Typescript Introduction In today's digital age, mobile applications have become an essential part of our lives. With the increasing demand for mobile apps, developers are constantly looking for efficient ways to build high-quality apps that can run on multiple platforms. React Native, a popular JavaScript framework, and Typescript, a stat.. 2023. 7. 11. 아직도 이거 모르니? Typescript 조건부 타입정의 Infer 예시와 함께 알아보기! 소개 Typescript는 자바스크립트에 정적 타입을 추가하는 강력한 슈퍼셋입니다. 이는 개발자들이 타입을 정의하고 강제할 수 있어서 오류를 조기에 발견하고 코드 품질을 향상시킬 수 있습니다. Typescript의 주요 기능 중 하나는 조건부 타입정의를 지원하는 것인데, 이를 통해 특정 조건에 따라 타입을 생성할 수 있습니다. 1. 조건부 타입이란? Typescript의 조건부 타입은 조건에 따라 타입을 정의할 수 있는 기능입니다. 이는 infer 키워드를 사용하여 제네릭 파라미터의 타입을 추론할 수 있습니다. 2. 기본 문법 Typescript에서 조건부 타입을 정의하는 기본 문법은 다음과 같습니다: type MyConditionalType = T extends U ? X : Y; 이 문법에서 T는 제.. 2023. 6. 23. 이전 1 다음 반응형