IjzerenHein / firestorter

Use Google Firestore in React with zero effort, using MobX 🤘
http://firestorter.com
MIT License
378 stars 50 forks source link

Creating Generics #151

Open shadabfaiz-cawstudios opened 3 years ago

shadabfaiz-cawstudios commented 3 years ago

[QUESTION] In typescript we can create a generic interface like:

interface PaginationData<T> {
  items: T[]
  pageInfo: PageInfo
}

type PaginatedUserData = PaginationData<User>

How can i achieve similar result with superstruct?