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 form

How to type a React form onSubmit handler

Excellent TypeScript definitions for your React forms
wono | discuss |
it dev typescript typeguard

Custom Type guards in Typescript

Custom type guards are often used when dealing with data coming from the outside world. This is particularly useful when the TypeScript compiler can't determine the exact type of the data but you, as a developer, have more knowledge about its structure and types.
wono | discuss |
it dev typescript dynamic type

TypeScript Object with Dynamic Keys | Basedash

This post provides a comprehensive guide on working with TypeScript objects that have dynamic keys, covering various techniques and scenarios.
wono | discuss |
it dev typescript

함수형 React 컴포넌트 시대, defaultProps는 더 이상 필요하지 않다. - point of view.

React 컴포넌트를 타입스크립트로 작성할 때 컴포넌트가 Props를 받기 위해서는 Props의 타입을 선언해줘야 한다. Props의 타입을 선언하는 방법에는 interface를 사용하거나 type을 사용하는 두 가지가 있다. (혹은 인라인으로 타입을…
wono | discuss |
it dev typescript eslint

eslint-plugin-import/docs/rules/no-anonymous-default-export.md at main · import-js/eslint-plugin-import

ESLint plugin with rules that help validate proper imports. - eslint-plugin-import/docs/rules/no-anonymous-default-export.md at main · import-js/eslint-plugin-import
wono | discuss |
it dev react typescript

Typescript useState: SetState in Child with argument

How can I pass down setState to a child component and use the c argument without a typescript error? Parent: Passing down setState export interface State { value1: string; value2: string; }
wono | discuss |
it dev typescript declare global

타입스크립트 declare 사용법

declare 키워드 기능 환경 선언(ambient declarations) 만들 때 사용 네임스페이스 확장으로 특정 모듈이나 변수, 함수, 클래스 등이 존재한다는 것을 TypeScript 컴파일러에게 알릴 때 사용 d.ts를 통한 분리 관리 1. 환경 선언(Ambient Declarations) declare를 사용하는 환경 선언은 TypeScript에게 특정 변수나 모듈이 존재한다고 알리기 위해 사용된다. 주로 외부 자바스크립트 라이브러리나 환경에 존재하는 변수들에 대한 타입 정보를 제공할 때 사용한다. 예시 전역 변수 선언 전역 변수 MY_GLOBAL이 자바스크립트 환경에서 이미 존재한다고 가정할 때, 다음과 같이 TypeScript에게 이 변수의 존재와 타입을 알릴 수 있다. TypeScript ..
wono | discuss |
it dev typescript formdata

Convert object to FormData

Convert object to FormData. GitHub Gist: instantly share code, notes, and snippets.
wono | discuss |
it dev typescript union

타입 가드 | TypeScript Deep Dive

wono | discuss |
it dev typescript union

Property “x” does not exist on union type in typescript when object destructuring

An outline into how to destructure object properties when coming across the "Property “x” does not exist on union type" warning"
wono | discuss |
it dev typescript nameof

Get name of variable in typescript

How can I get a variables name in typescript? I want something like this: var name = "Foo"; alert(getVariableName(name)); //Prints "name"
wono | discuss |
it dev typescript nameof

Typescript nameof

wono | discuss |
it dev typescript generic

[TypeScript] tsx 화살표 함수에 제네릭 사용하기

tsx에서 `<>`는 태그를 나타낼 때 사용하므로, 컴파일러에게 태그가 아닌 제네릭임을 알려 주어야 합니다. 🧐
wono | discuss |
it dev typescript formdata

Convert JS Object to form data

How can I can convert my JS Object to FormData? The reason why I want to do this is, I have an object that I constructed out of the ~100 form field values. var item = { description: 'Some Ite...
wono | discuss |
it dev typescript formdata

Convert Javascript Object into FormData for POST request

There are many ways to send data from html form to backend through POST request. Out of them, the primary way is FormData.
wono | discuss |
it dev typescript unused

Unused underscore variables not being ignored by lint rules · Issue #19614 · microsoft/TypeScript

TypeScript Version: 2.7.0-dev.20171031, 2.6.1 (Regression from 2.5.3) Expected behavior: Variables with names that begin with an underscore do not cause an error if not used. Actual behavior: components/panel/panel.ts(22,11): error TS613...
wono | discuss |
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 |
Next
© 2025. LINKTAG.ORG. Help Feedback Privacy Terms