Skip to content

Should UUID be a valid RefType? #15101

Closed
@hasezoey

Description

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

I have noticed that UUID is not part of RefType and have wondered if it should be valid (as Buffer is).

mongoose/types/index.d.ts

Lines 565 to 575 in b7b257e

export type RefType =
| number
| string
| Buffer
| undefined
| Types.ObjectId
| Types.Buffer
| typeof Schema.Types.Number
| typeof Schema.Types.String
| typeof Schema.Types.Buffer
| typeof Schema.Types.ObjectId;

Activity

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

Metadata

Assignees

No one assigned

    Labels

    typescriptTypes or Types-test related issue / Pull Request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions