p-iknow's devlog

There are 1 post that match #union.

algorithm (28)
javascript (16)
code-signal (16)
programmers (12)
자료구조 (8)
ADT (8)
front-end (7)
vscode (5)
sorting (5)
editor (5)
webpack (4)
typescript (3)
react (3)
node (3)
issue (3)
terminal (2)
never (2)
log (2)
css (2)
OOP (2)
웹표준 (1)
웹접근성 (1)
union (1)
throttle (1)
speech-bubble (1)
sementic-release (1)
section-tag (1)
review (1)
reflection (1)
pull-request (1)
private-field (1)
path (1)
passport (1)
packages (1)
observer-pattern (1)
next.js (1)
mvc-pattern (1)
interface (1)
inheritance (1)
http (1)
html (1)
github (1)
git (1)
functional-programming (1)
excess-property-check (1)
event (1)
eslint (1)
dom (1)
debug (1)
debounce (1)
conditional-type (1)
carousel (1)
browser (1)
Webpack (1)
Structural-Typing (1)
React (1)

interface의 union과 never 타입을 활용하여 서로 의존적인 prop을 가진 interface 정의하기

2023-06-19

서로 의존적인 필드를 가진 란? 와 이라는 prop을 가진 인터페이스가 있다고 하자. 가 인 경우 는 여야 한다. 가 인 경우 는 여야 한다. 하나의 property의 상태가 다른 property의 결과에 영향을 미친다. 이런 경우 서로 의존적인 필드가 있다고 말한다. 사내의 리엑트 컴포넌트의 를 정의중에 이런 의존적인 field를 …

typescript
union
interface
never
© p-iknow's devlog, Built with Gatsby and gatsby-starter-hoodie theme.