typescript:deep:type
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판이전 판다음 판 | 이전 판 |
| typescript:deep:type [2019/11/23 04:55] – [Solution 3 - More specific signature:] taekgu | typescript:deep:type [2025/04/15 10:05] (현재) – 바깥 편집 127.0.0.1 |
|---|
| |
| We can use ''type'' to declare a function type: | We can use ''type'' to declare a function type: |
| | |
| | ''type''을 이용하여 함수 타입을 선언할 수 있다. |
| |
| <Code:typescript> | <Code:typescript> |
| |
| We are Typescript, we'd love to use the beloved ''interface'' for everything, well, you can, for just a function. | We are Typescript, we'd love to use the beloved ''interface'' for everything, well, you can, for just a function. |
| | 우리는 타입스크립트에서는, 우리는 모든 것에 대해서 사랑하는 ''interface''를 사용를 선호한다. 글쎄, 당신은 함수에 대해서도 할 수 있다. |
| <Code:typescript> | <Code:typescript> |
| interface read { | interface read { |
| ==== Summary ==== | ==== Summary ==== |
| |
| In pratice, I often use ''Solution 4 - Type''. Maybe juse because it looks simpler than ''interface'' version. | In pratice, I often use ''Solution 4 - Type''. Maybe just because it looks simpler than ''interface'' version. |
| |
| | 경험적으로 나는 4번 Type을 선호한다. 아마도 ''interface''버전보다 단순해 보이기 때문이다. |
typescript/deep/type.1574484915.txt.gz · 마지막으로 수정됨: 2025/04/15 10:05 (바깥 편집)