typescript

typescript

typescript์˜ enum์€ tree shaking์ด ๋˜์ง€ ์•Š๋Š”๋‹ค?

์˜ค๋Š˜ ๋ฐฐ์šด ํ† ๋ง‰(?) ์ƒ์‹

Read
javascript typescript

eslint-config-yceffort, ๋‚˜๋งŒ์˜ eslint-config ๋งŒ๋“ค๊ธฐ

๋‚˜๋งŒ์˜ ์ผ๊ด€๋œ javascript code๋ฅผ ์œ„ํ•˜์—ฌ ๋งŒ๋“ค์–ด๋ณด์•˜์Šต๋‹ˆ๋‹ค.

Read

์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ์ž๋ฃŒ ๊ตฌ์กฐ

`toc tight: true, from-heading: 1 to-heading: 4 ` ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ๋กœ ๊ตฌํ˜„ํ•ด๋ณด๋Š” ์ผ๋ฐ˜์ ์ธ ์ž๋ฃŒ๊ตฌ์กฐ ## Stack - push์™€ pop์œผ๋กœ ๊ตฌ์„ฑ๋œ stack - LIFO ```javascript export default class Stack<T> { private stack: T[] construc...

Read

์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ์˜ private

์ด ๊ธ€์€ [์€๋‹‰์„ ํ–ฅํ•œ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ์˜ ์—ฌ์ •](https://meetup.toast.com/posts/228)์„ ์š”์•ฝํ•œ ๊ธ€์ž…๋‹ˆ๋‹ค. ## History ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ์—์„œ๋Š” ๊ฐ์ฒด์— private ํ•œ ์†์„ฑ์„ ๋งŒ๋“ค ์ˆ˜๊ฐ€ ์—†์—ˆ๋‹ค. ๊ทธ๋ž˜์„œ ๋ณดํ†ต ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ๊ฐœ๋ฐœ์ž๋Š” privateํ•œ ๊ฒƒ์ด๋‹ค ๋ผ๋Š” ์•ฝ์†์œผ๋กœ `_` prefix๋ฅผ ๋ถ™์—ฌ์„œ ์‚ฌ์šฉํ•˜๊ณ ๋Š” ํ–ˆ์—ˆ๋‹ค. ```javas...

Read

๋ฆฌ๋•์Šค ๊ณต๋ถ€ํ•ด๋ณด๊ธฐ (3) - ์šฉ์–ด

https://redux.js.org/glossary#state ## ์šฉ์–ด ๋ชจ์Œ ### State (์ƒํƒœ) ```typescript type State = any ``` State (State tree๋ผ๊ณ  ๋„ ๋ถˆ๋ฆฌ์šด๋‹ค)๋Š” Redux API์—์„œ๋Š” ๋ณดํ†ต ์Šคํ† ์–ด์—์„œ ๊ด€๋ฆฌํ•˜๊ณ , `getState()`์— ์˜ํ•ด ๋ฐ˜ํ™˜๋˜๋Š” ๋‹จ์ผ ๊ฐ’์„ ๊ฐ€๋ฆฌํ‚จ๋‹ค. ๊ด€๋ก€์ ์œผ๋กœ, ๊ฐ€์žฅ...

Read