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

**URL:** <https://forums.unrealengine.com/t/in-verse-there-are-a-generic-types-like-typescript-already-have/1229244>\
**Category:** Verse\
**Tags:** unreal-engine, unreal-editor-for-fortnite, fortnite-creative, editor, question, fortnite\
**Created:** [July 14, 2023, 6:42pm UTC](https://forums.unrealengine.com/t/in-verse-there-are-a-generic-types-like-typescript-already-have/1229244 "2023-07-14T18:42:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![opsgamer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@opsgamer](https://forums.unrealengine.com/u/opsgamer)\
**Post date:** [July 14, 2023, 6:42pm UTC](https://forums.unrealengine.com/t/in-verse-there-are-a-generic-types-like-typescript-already-have/1229244/1 "2023-07-14T18:42:52Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ManualPotato](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/manualpotato/32/1144902_2.png) [@ManualPotato](https://forums.unrealengine.com/u/ManualPotato)\
**Post date:** [July 15, 2023, 3:08pm UTC](https://forums.unrealengine.com/t/in-verse-there-are-a-generic-types-like-typescript-already-have/1229244/2 "2023-07-15T15:08:44Z")

</div>

Hey, yea there are some [Parametric Types](https://dev.epicgames.com/documentation/en-us/uefn/parametric-types-in-verse) features available. It’s not as feature-packed as type parameters in Typescript but may do what you are looking for already.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 14, 2023, 3:09pm UTC](https://forums.unrealengine.com/t/in-verse-there-are-a-generic-types-like-typescript-already-have/1229244/3 "2023-08-14T15:09:24Z")

</div>

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