Skip to content

Task: Organize Type System #37

@kamescg

Description

@kamescg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions