Skip to content

Weird required array typing #4964

@Sytten

Description

@Sytten

Bug description

Currently the typing for a required array is:

type CalendarEventCreateattendeesInput = {
    set: Enumerable<InputJsonValue>
  }

type CalendarEvent {
  ...
  attendees?: CalendarEventCreateattendeesInput | Enumerable<InputJsonValue>
}

Expected behavior

The typing should be:

type CalendarEventCreateattendeesInput = {
    set: Enumerable<InputJsonValue>
  }

type CalendarEvent {
  ...
  attendees: CalendarEventCreateattendeesInput | Enumerable<InputJsonValue>
}

Environment & setup

  • OS: MacOs
  • Database: PostgreSQL
  • Node.js version: 14
  • Prisma version: 2.14.0

Metadata

Metadata

Assignees

Labels

bug/1-unconfirmedBug should have enough information for reproduction, but confirmation has not happened yet.kind/bugA reported bug.tech/typescriptIssue for tech TypeScript.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions