I hereby claim:
- I am ehsanghaffarii on github.
- I am ehsanghaffarii (https://keybase.io/ehsanghaffarii) on keybase.
- I have a public key ASCvE6IUy6OIJig8kqQXATyxQsuFhIwhOVGqHBfm3SKfhgo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-12-08T00:47:49.235Z","extensionVersion":"v3.4.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// inline function types | |
const stringify = (value: any): string => JSON.stringify(value) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const add = (a: number, b: number): number => a + b | |
add('1', '2') | |
// ❌ این ارور زیر رو برمیگردونه | |
// Argument of type 'string' is not assignable to parameter of type 'number'. ts(2345) | |
add(1, 2).replace('0', '*') | |
// ❌ این ارور زیر رو برمیگردونه |