2025. 7. 3. 18:58ใFront-end/TypeScript

๋ชฉ์ฐจ
1. DefinitelyTyped๋?
1. DefinitelyTyped๋?
ํ์ ์คํฌ๋ฆฝํธ์์ ์๋ฐ์คํฌ๋ฆฝํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ฌ์ฉํ๊ธฐ ์ํ ํ์ ์ ์ธ ํ์ผ(.d.ts)์ ๋ชจ์๋ ์คํ์์ค ์ ์ฅ์์ด๋ค.
https://github.com/DefinitelyTyped/DefinitelyTyped
GitHub - DefinitelyTyped/DefinitelyTyped: The repository for high quality TypeScript type definitions.
The repository for high quality TypeScript type definitions. - DefinitelyTyped/DefinitelyTyped
github.com
์๋ฐ์คํฌ๋ฆฝํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ ๊ธฐ๋ณธ์ ์ผ๋ก ํ์ ์ ๋ณด๋ฅผ ์ ๊ณตํ์ง ์๋๋ฐ, ์ด๊ฑธ ํ์ ์คํฌ๋ฆฝํธ์์ ๋ฐ๋ก ์ฌ์ฉํ๋ฉด
์ ํํ ํ์ ์ ๋ณด์ ๋ถ์ฌ๋ก ์ธํด ์๋ฌ๊ฐ ๋ฐ์ํ๊ฒ ๋๋ค.
@types ๋ค์์คํ์ด์ค ํจํค์ง๋ฅผ ํตํด NPM์์ ์ฝ๊ฒ ์ค์นํ ์ ์๋ค.
npm install @types/lodash
npm install @types/node
npm install @types/react
์ด๋ฐ ๋๋..
@types ํจํค์ง๋ ์๋ฐ์คํฌ๋ฆฝํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๋ํด ํ์ ์ ์ธ ํ์ผ์ ๋ณ๋๋ก ๋ง๋ค์ด ์ ๊ณตํจ์ผ๋ก์จ
ํ์ ์คํฌ๋ฆฝํธ ์ปดํ์ผ๋ฌ๊ฐ ํด๋น ๋ผ์ด๋ธ๋ฌ๋ฆฌ API ํ์ ์ดํด, ์ฝ๋ ์์ฑ ์ ํ์ ์์ ์ฑ, ์๋์์ฑ, ์ค๋ฅ ๊ฒ์ถ ๋ฑ์ ํ๋๋ก ์ง์ํ๋ค.
์๋ฐ์คํฌ๋ฆฝํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ฌ์ฉ์ค ํ์ ์ ์ ์ํด์ผํ๊ฑฐ๋ ์์ ํ ์ผ์ด ์๊ธด๋ค๋ฉด ์ ๋ ํฌ์ ๊ธฐ์ฌํด๋ณผ ์๋ ์๋ค.
์ฐธ๊ณ
https://www.daleseo.com/definitely-typed/
Definitely Typed: TypeScript์ ํ์ ์ ์ ์ ์ฅ์
Engineering Blog by Dale Seo
www.daleseo.com
https://github.com/DefinitelyTyped/DefinitelyTyped
GitHub - DefinitelyTyped/DefinitelyTyped: The repository for high quality TypeScript type definitions.
The repository for high quality TypeScript type definitions. - DefinitelyTyped/DefinitelyTyped
github.com
'Front-end > TypeScript' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| [WIP]TypeScript์ ๋์ ์๋ฆฌ (0) | 2025.10.25 |
|---|---|
| JavaScript๊ฐ ์๋ TypeScript๋ฅผ ์ฌ์ฉํ๋ ์ด์ (0) | 2025.10.25 |
| TS: ํ๋ก์ ํธ ์ด๊ธฐ ์ค์ (2) | 2025.07.03 |
| TypeScript์์์ ํ์ด์ง ์ด๋ : Link (0) | 2025.03.29 |
| ํ์ ์คํฌ๋ฆฝํธ(TypeScript)๋? (0) | 2025.03.26 |
GitHub