Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

@mockType for aliases #18

Description

@Rody-Kirwan

I am not an expert at typescript, but I am using interfaces as a descriptive tool to describe my application state model. This lib is great.

It would be really useful if you could set `@mockType at an alias level for instance:

type UserId = string /** @mockType {random.uuid} */

interface User {
  userId: UserId
  group: UserId[]
}

// returns

{
   userId: 97896447-4453-4718-990d-1d2a5f38533b,
   group: [ 28939844-74c4-4907-b596-41f1382a2607 ]
}

Currently my Array of string types returns:

{
   userId: 97896447-4453-4718-990d-1d2a5f38533b,
   group: [ {}, {}, {} ]
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions