• 2 Posts
  • 121 Comments
Joined 1 年前
cake
Cake day: 2023年8月3日

help-circle









  • jana@leminal.spacetoProgrammer Humor@lemmy.mlWith PieMixin
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 年前

    But generic type syntax is a feature exclusive to Typescript while typeof is a JavaScript thing. You’d never get Pie[Pie[T]] as a result from a typeof check. (Please excuse the square brackets; seems like the markdown parser here isn’t quite right and it keeps messing up the angle brackets)

    Also, it’s typeof foo not typeof(foo) in js