-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Context
The Universal monorepo includes a considerable amount of data schemas, structures and mutations.
The types are spread across multiple apps and packages:
- api-credentials
- api-identity
- api-delegations
- api-universal
- universal-credential-sdk
- universal-data-sdk
- universal-delegations-sdk
- universal-identity-sdk
It's not sustainable and we need to start co-locating types in an singular package.
The universal-data package is not the right package for exporting common types like TokenItem, TokenList, SocialCredential, DelegationExecutions, DelegationWithMetadata, etc...
Scope
Create a new package packages/universal-types that is the canonical source for types across the monorepo.
It should import/export types database from the API services and also combine/merge types when appropriate (i.e. SocialCredential) so UI components can have assurances about what data is being passed around.
Moves types from the universal-data package to the universal-types package.