Tagging
Try bookmarklet. Easy tagging.
Do you want to delete?
Do you want to modify?
  • LINKTAG
  • New
  • Tag
  • Comment
  • Tag, typescript
Sign in

typescript

it dev typescript export

Avoid Export Default | TypeScript Deep Dive

wono | discuss |
it dev typescript javascript

TypeScript compile and keep comments

I like to have my comments intact in the resulting javascript file, by default the compiler removes them. Is there a tsc parameter for that? (The use case is to keep /// reference path's = ... for
wono | discuss |
it dev typescript tsconfig

๐Ÿ“˜ ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ ์ปดํŒŒ์ผ ์„ค์ • - tsconfig ์˜ต์…˜ ์ด์ •๋ฆฌ

ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ ์ปดํŒŒ์ผ ์„ค์ • tsconfig.json์€ ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋กœ ๋ณ€ํ™˜ ์‹œํ‚ค๋Š” ์ปดํŒŒ์ผ ์„ค์ •์„ ํ•œ๊บผ๋ฒˆ์— ์ •์˜ ํ•ด๋†“๋Š” ํŒŒ์ผ์ด๋ผ๊ณ  ๋ณด๋ฉด ๋œ๋‹ค. ํ”„๋กœ์ ํŠธ๋ฅผ ์ปดํŒŒ์ผ ํ•˜๋Š”๋ฐ ํ•„์š”ํ•œ ๋ฃจํŠธ ํŒŒ์ผ, ์ปดํŒŒ์ผ๋Ÿฌ ์˜ต์…˜ ๋“ฑ์„ ์ƒ์„ธํžˆ ์„ค์ •ํ•  ์ˆ˜ ์žˆ๋‹ค. ๋ณดํ†ต tsconfig.json ํŒŒ์ผ์€ TypeScript ํ”„๋กœ์ ํŠธ์˜ ๋ฃจํŠธ ๋””๋ ‰ํ† ๋ฆฌ(Root Directory)์— ์œ„์น˜๋œ๋‹ค. ๊ทธ๋ž˜์„œ tsconfig.json ํŒŒ์ผ์ด ํ”„๋กœ์ ํŠธ์— ์žˆ๋‹ค๋ฉด vscode๋Š” ์šฐ๋ฆฌ๊ฐ€ ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ๋กœ ๊ฐœ๋ฐœํ•œ๋‹ค๋Š” ๊ฒƒ์„ ์ธ์‹ํ•˜๊ฒŒ ๋˜๋Š” ๊ฒƒ์ด๋‹ค. tsconfig์—์„œ ์˜ต์…˜๋“ค์„ ๋ฏธ๋ฆฌ ์ •์˜ํ•ด ๋†“์œผ๋ฉด, ๋”์ด์ƒ ์ปดํŒŒ์ผ ํ• ๋•Œ ๋ช…๋ น์–ด์— ์ผ์ผํžˆ ๋Œ€์ƒ ํŒŒ์ผ์ด๋‚˜ ์˜ต์…˜์„ ์ง€์ •ํ•˜์ง€ ์•Š์•„๋„ ๋œ๋‹ค. ๊ทธ๋ž˜์„œ tsc ๋‚˜ ts-node ๋ช…๋ น์–ด๋ฅผ ๊ทธ๋ƒฅ ์‹คํ–‰ํ•˜๊ฒŒ ๋˜๋ฉด, ํ˜„์žฌ ํด๋”์— ์žˆ๋Š” ts..
wono | discuss |
it dev typescript

Typescript tutorial

Black-belt your web development skills. Over 2000 free programming tutorial videos about:- Modern JavaScript (beginner to advanced)- Node.js- React- Vue.js- ...
wono | discuss |
it dev react typescript

React typescript tutorial for beginner

YouTube์—์„œ ๋งˆ์Œ์— ๋“œ๋Š” ๋™์˜์ƒ๊ณผ ์Œ์•…์„ ๊ฐ์ƒํ•˜๊ณ , ์ง์ ‘ ๋งŒ๋“  ์ฝ˜ํ…์ธ ๋ฅผ ์—…๋กœ๋“œํ•˜์—ฌ ์นœ๊ตฌ, ๊ฐ€์กฑ๋ฟ ์•„๋‹ˆ๋ผ ์ „ ์„ธ๊ณ„ ์‚ฌ๋žŒ๋“ค๊ณผ ์ฝ˜ํ…์ธ ๋ฅผ ๊ณต์œ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
wono | discuss |
it blog typescript

I've been writing TypeScript without understanding it

I admit, I donโ€™t really understand TypeScript The other day, I was stuck with a bug in... Tagged with typescript, javascript, tutorial, learning.
wono | discuss |
it dev zustand typescript

TypeScript Guide - Zustand

wono | discuss |
it dev typescript

useRef, useImperativeHandle, forwardRef

useRef์™€ useImperativeHandle์€ ref๋ผ๋Š” ์†์„ฑ์— ์ ์šฉํ•˜๋Š” ๊ฐ’์„ ๋งŒ๋“ค์–ด ์ฃผ๋Š” ํ›…์ด๋‹ค. ๋ฆฌ์•กํŠธ์™€ ๋ฆฌ์•กํŠธ ๋„ค์ดํ‹ฐ๋ธŒ๊ฐ€ ์ œ๊ณตํ•˜๋Š” ์ปดํฌ๋„ŒํŠธ๋Š” ๋ชจ๋‘ ref๋ผ๋Š” ์ด๋ฆ„์˜ ์†์„ฑ์„ ๊ฐ€์ง€๊ณ  ์žˆ๋‹ค.ref ์†์„ฑ์ด๋ž€?Ref๋Š” ์ฐธ์กฐ๋ฅผ ์˜๋ฏธํ•œ๋‹ค.ref ์†์„ฑ๊ฐ’์€ ์‚ฌ์šฉ์ž ์ฝ”๋“œ์—์„œ ์„ค์ •ํ•˜๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๋ผ, ํŠน์ • ์‹œ์ ์— React ํ”„๋ ˆ์ž„์›Œํฌ ๋‚ด๋ถ€์—์„œ ์„ค์ •ํ•ด ์ค€๋‹ค. ref ์†์„ฑ์€ ์ดˆ๊ธฐ์—๋Š” null์ด์ง€๋งŒ, ์ปดํฌ๋„ŒํŠธ๊ฐ€ ๋งˆ์šดํŠธ ๋˜๋Š” ์‹œ์ ์—์„œ ์‹ค์ œ DOM ๊ฐ์ฒด์˜ ๊ฐ’์ด ๋œ๋‹ค.HTML ์š”์†Œ๋“ค์€ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ์—์„œ DOM ํƒ€์ž… ๊ฐ์ฒด์ด๋‹ค. ๋ชจ๋“  ์š”์†Œ๋Š” HTMLElement ํƒ€์ž…์ด๋ฉฐ, click(), blur(), focus() ๋ฉ”์„œ๋“œ๋ฅผ ์ œ๊ณตํ•œ๋‹ค. ์ด ๋ฉ”์„œ๋“œ๋“ค์€ ๊ฐ€์ƒ DOM ์ƒํƒœ์—์„œ๋Š” ํ˜ธ์ถœํ•  ์ˆ˜ ์—†๊ณ , ์‹ค์ œ DOM ์ƒํƒœ์—์„œ๋งŒ ํ˜ธ์ถœํ•  ์ˆ˜ ์žˆ๋‹ค...
wono | discuss |
it dev typescript htmlinputelement

Property 'value' does not exist on type 'never'. when use useRef hook in mui

wono | discuss |
it dev typescript unknown

[101] ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ์˜ unknown ํƒ€์ž…

TypeScript์—์„œ unknown ํƒ€์ž…์€ any์™€ ํ˜ผ๋™๋  ์ˆ˜ ์žˆ์ง€๋งŒ, ์ฝ”๋“œ ์•ˆ์ „์„ฑ์— ์žˆ์–ด ๊ฒฐ์ •์ ์ธ ์ฐจ์ด๋ฅผ ๋งŒ๋“ญ๋‹ˆ๋‹ค. unknown์„ ํšจ๊ณผ์ ์œผ๋กœ ์‚ฌ์šฉํ•˜๋ฉด React ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ์•ˆ์ •์„ฑ๊ณผ ์˜ค๋ฅ˜ ๋ฐฉ์ง€๋ฅผ ํฌ๊ฒŒ ํ–ฅ์ƒ์‹œํ‚ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ๊ธ€์—์„œ๋Š” unknown ํƒ€์ž…์„ ํ™œ์šฉํ•œ ์•ˆ์ „ํ•œ ํƒ€์ž… ๊ฒ€์‚ฌ ๊ธฐ๋ฒ•์„ React ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์ค‘์‹ฌ์œผ๋กœ ์ž์„ธํžˆ ์‚ดํŽด๋ด…๋‹ˆ๋‹ค.1. unknown ํƒ€์ž…์˜ ๊ธฐ๋ณธ ๊ฐœ๋…unknown ํƒ€์ž…์€ ๋ง ๊ทธ๋Œ€๋กœ "์•Œ ์ˆ˜ ์—†๋Š”" ํƒ€์ž…์„ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค. ์–ด๋–ค ๊ฐ’์ด ์˜ฌ์ง€ ํ™•์‹คํ•˜์ง€ ์•Š์„ ๋•Œ unknown์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, ์ด๋Š” ๊ฐ’์„ ์‚ฌ์šฉํ•˜๊ธฐ ์ „์— ๋ฐ˜๋“œ์‹œ ๊ทธ ํƒ€์ž…์„ ํ™•์ธํ•ด์•ผ ํ•œ๋‹ค๋Š” ํŠน์ง•์ด ์žˆ์Šต๋‹ˆ๋‹ค.let unknownValue: unknown;unknownValue = 100; // ์ˆซ์ž ํ• ๋‹น ๊ฐ€๋Šฅunknow..
wono | discuss |
it dev typescript props

Next.js์—์„œ ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ์™€ ํ•จ๊ป˜ํ•˜๋Š” ํ•จ์ˆ˜ํ˜• ์ปดํฌ๋„ŒํŠธ์˜ ๋ชจ๋“  ๊ฒƒ

ํ•จ์ˆ˜ํ˜• ์ปดํฌ๋„ŒํŠธ๋Š” ๋ฆฌ์•กํŠธ ๊ฐœ๋ฐœ์—์„œ ๊ฐ€๋…์„ฑ ๋†’๊ณ  ๊ฐ„๊ฒฐํ•œ ์ฝ”๋“œ ๊ตฌ์กฐ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ์ด ๊ธ€์—์„œ๋Š” Next.js ํ™˜๊ฒฝ์—์„œ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ์™€ ES6 ํ™”์‚ดํ‘œ ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•œ ํ•จ์ˆ˜ํ˜• ์ปดํฌ๋„ŒํŠธ์˜ ๊ตฌ์กฐ, ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ๋ฅผ ํ™œ์šฉํ•œ ์†์„ฑ ์ •์˜ ๋ฐฉ๋ฒ•, ๊ทธ๋ฆฌ๊ณ  ํ•จ์ˆ˜ํ˜• ์ปดํฌ๋„ŒํŠธ์˜ ์—ฌ๋Ÿฌ ๊ตฌ์„ฑ ์š”์†Œ ๋ฐ ๋ฐฉ์‹์— ๋Œ€ํ•ด ์•Œ์•„๋ด…๋‹ˆ๋‹ค.
wono | discuss |
it qa jsdoc typescript

Discussion of What is JSDoc and why you may not need typescript for your next project?

It has been a couple of weeks since I started testing out this technology, JSDoc, for maintaining...
wono | discuss |
it dev typescript

type vs interface (TypeScript)

๊ฐœ์š” typescript์—์„œ ํƒ€์ž…์„ ๋งŒ๋“ค๋•Œ type alias, interface ๋‘๊ฐ€์ง€ ์‚ฌ์šฉ๋ฐฉ์‹์ด ์žˆ๋‹ค. ๊ธฐ๋ณธ์ ์ธ ์‚ฌ์šฉ ๋ฐฉ๋ฒ•์˜ ์ฐจ์ด์— ๋Œ€ํ•œ ๊ธ€์€ ์ด๋ฏธ ์ธํ„ฐ๋„ท์— ๋งŽ์ด ์žˆ๋‹ค. ๊ทธ ์™ธ type alias์™€ interface๋ฅผ ์„ ํƒํ• ๋•Œ ๊ณ ๋ คํ•  ๋งŒํ•œ ๋ถ€๋ถ„๋“ค์€ ์–ด๋–ค๊ฒŒ ์žˆ๋Š”์ง€ ๋Œ€ํ•ด ์ •๋ฆฌํ•ด๋ณด๋ ค๊ณ  ํ•œ๋‹ค. > typescript ์œ„ํ‚ค๋‚˜, ํ•ธ๋“œ๋ถ ๋ฌธ์„œ๋ฅผ ๋ณด๋ฉด ์ผ๋‹จ ..
wono | discuss |
it dev typescript

ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ์—์„œ type ๊ณผ interface ๋” ์•Œ์•„๋ณด๊ธฐ

๋ฐ๋ณด์…˜ (DEVOCEAN) ๊ธฐ์ˆ  ๋ธ”๋กœ๊ทธ , ๊ฐœ๋ฐœ์ž ์ปค๋ฎค๋‹ˆํ‹ฐ์ด์ž ๋‚ด/์™ธ๋ถ€ ์†Œํ†ต๊ณผ ์„ฑ์žฅ ํ”Œ๋žซํผ
wono | discuss |
it dev typescript

ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ type๊ณผ interface์˜ ๊ณตํ†ต์ ๊ณผ ์ฐจ์ด์ 

https://yceffort.kr
wono | discuss |
it dev typescript

TypeScript - type๊ณผ interface์˜ ์ฐจ์ด

TypeScript์—์„œ type๊ณผ interface๋Š” ๋น„์Šทํ•œ ์—ญํ• ์„ ํ•˜๋Š” ๊ฒƒ ๊ฐ™์€๋ฐ, ์–ด๋–ค ๊ฒฝ์šฐ์—๋Š” type์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒŒ ์ข‹๊ณ  ์–ด๋–ค ๊ฒฝ์šฐ์—๋Š” interface๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒŒ ์ข‹์€์ง€ ๊ถ๊ธˆํ•ด์„œ ์•Œ์•„๋ณด์•˜๋‹ค.extends ํ‚ค์›Œ๋“œ๋ฅผ ์ด์šฉํ•ด์„œ ํ™•์žฅํ•  ์ˆ˜ ์žˆ๋‹ค.& ๊ธฐํ˜ธ๋ฅผ ์ด์šฉํ•ด์„œ
wono | discuss |
it lang typescript

Documentation - Utility Types

Types which are globally included in TypeScript
wono | discuss |
it dev typescript

[TypeScript] ์œ ํ‹ธ๋ฆฌํ‹ฐ ํƒ€์ž… (Pick, Omit, Partial, Record ๋“ฑ)

react-router ์ฝ”๋“œ์—์„œ ๊ฐ‘์ž๊ธฐ ๋“ฑ์žฅํ•œ Pick! import์—๋„ ์—†๊ณ  ๋Œ€์ฒด ์ด๊ฒŒ ๋ญ์ง€โ€ฆ?
wono | discuss |
it dev typescript

[tsconfig์˜ ๋ชจ๋“  ๊ฒƒ] Compiler options / Emit

์ด๋ฒˆ ํฌ์ŠคํŒ…์—์„œ๋Š” ์ง€๋‚œ [tsconfig์˜ ๋ชจ๋“  ๊ฒƒ] Compiler options / Modules ํฌ์ŠคํŒ…์— ์ด์–ด ์˜ ์ปดํŒŒ์ผ ์˜ต์…˜ ์ค‘ ์ถœ๋ ฅ ํŒŒ์ผ์„ ์ปจํŠธ๋กค ํ•˜๋Š” ์˜ต์…˜๋“ค์„ ์†Œ๊ฐœํ•  ์˜ˆ์ •์ด๋‹ค.
wono | discuss |
it dev typescript convention

Naming Conventions

Naming conventions provide a consistant and expected style of usage across all namespaces used by MakeCode. This allows the coding user to make general assumptions about name forms used for functions, methods, properties, and enumerations. While writing code, a user can assume a certain order of name case and style for the names exposed by your extension. This eases the composition of code and saves the user from errors when they try to use a name as they might expect to.
wono | discuss |
Next
© 2025. LINKTAG.ORG. Help Feedback Privacy Terms