일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 |
- API
- bitcoin
- web
- error
- REACT
- middleware
- hardhat
- typeScript
- JavaScript
- solidity
- CSS
- built in object
- CLASS
- SSR
- 기준
- HTML
- concept
- Interface
- 삶
- express.js
- blockchain
- nextJS
- tailwindcss
- Props
- useState
- node.js
- Ethereum
- Redux
- evm
- graphQL
- Today
- Total
목록typeScript (22)
ReasonJun
In TypeScript, function overloading refers to the ability to define multiple function signatures for the same function name. This allows a function to accept different sets of arguments or have different return types based on the provided function signature. Function overloading enables you to provide different ways to call a function while maintaining type safety and clarity. It helps in creati..
In TypeScript, the this keyword is used to refer to the current instance of an object or class within a method or function. It represents the context in which a function is called or an object is accessed. The behavior of this can vary depending on the context in which it is used. Let's explore some common scenarios: In Object Methods: When this is used inside a method of an object, it refers to..
Optional Attribute In TypeScript interfaces, you can make properties optional by using the ? symbol after the property name. An optional property allows you to define that a certain property may or may not be present in an object that implements the interface. This provides flexibility when working with objects that may have varying sets of properties. Here's an example that demonstrates the use..
In TypeScript, an interface is a way to define the structure and shape of an object. It describes the contract that an object must adhere to by specifying the names, types, and optional modifiers of its properties and methods. Interfaces play a crucial role in defining the shape of data and enabling type checking and static analysis in TypeScript. Here's an example of defining an interface in Ty..
In TypeScript, a type guard is a runtime check that allows you to narrow down the type of a value within a conditional block. Type guards enable you to make more precise type inferences based on certain conditions, improving type safety and enabling more expressive and reliable code. Type guards are particularly useful when working with union types or when the TypeScript compiler cannot determin..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cHVrC6/btsjlEruMEk/GHe9UVKXYDjF4RZalzUBlk/img.png)
In TypeScript, assertion (also known as type assertion or type casting) is a way to inform the TypeScript compiler about the type of a value when the compiler cannot infer it automatically. It allows you to override the default type inference and treat a value as a specific type, even if there is no obvious relationship between the original type and the asserted type. Type assertions are typical..