In verse there are a generic types like typescript already have?

I want create some functions like utils for refactor my code, but I want to use types for that and I was needing some like generic types that already have typescript

something like this(example):

  • TS
    const foo = <T = unknown>(): T => {...}

that feature already be in verse? or will be implemented in futures release?

Hey, yea there are some Parametric Types features available. It’s not as feature-packed as type parameters in Typescript but may do what you are looking for already.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.