Subramanya's Digital Garden

Recent Notes

  • Appendix A Exploring Further

    Jan 25, 2026

    • javascript
    • fundamentals
  • Appendix B Practice!

    Jan 25, 2026

    • javascript
    • fundamentals
  • YDK JS Chapter 1

    Jan 25, 2026

    • ydkjs
    • book
Home

❯

02_Areas

❯

Computer Science

❯

02_Programming

❯

Languages

❯

TypeScript

❯

Function return type

Function return type

Jan 25, 20261 min read

  • typescript
  • function
  • return-type

links: TypeScript MOC


How to TypeScript typeof Function return value

const createPerson = () => ({
  firstName: 'John',
  lastName: 'Doe'
})
 
type Person = ReturnType<typeof createPerson>

tags: typescript , function, return-type

sources:

  • Typescript Pr

Graph View

  • GitHub
  • LinkedIn
  • Twitter