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
{ | |
// https://github.com/Microsoft/TypeScript/tree/master/tests/cases/compiler | |
// https://github.com/Microsoft/TypeScript/tree/master/tests/baselines/reference | |
// 공식문서 외에도 위 테스트 코드를 참고시 도움이 됩니다. | |
"compilerOptions": { | |
"allowJs": false, // 자바스크립트 파일 컴파일 허용 여부. | |
// import add from './add.js' 와 같이 js파일 import 허용 | |
"allowSyntheticDefaultImports": false, // export default 를 export 한 값들을 가지는 객체로 설정 |
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
/* | |
* Handling Errors using async/await | |
* Has to be used inside an async function | |
*/ | |
try { | |
const response = await axios.get('https://your.site/api/v1/bla/ble/bli'); | |
// Success 🎉 | |
console.log(response); | |
} catch (error) { | |
// Error 😨 |
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
// Add on element with overflow | |
-webkit-mask-image: -webkit-radial-gradient(white, black); |