milesj/docusaurus-plugin-typedoc-api

all types are declared as optional

Closed this issue · 3 comments

I'm facing a strange behaviour where all the type properties are declared as optional even if they are mandatory. Here is one of my type aliases (it happens for all of them actually)

type Metadata = {
  BitsAllocated: number
  BitsStored: number
  SamplesPerPixel: number
  HighBit: number
  PhotometricInterpretation: string
  PixelRepresentation: number
}

which renders to

image

although I have noticed that option flag does not appear when minimal=false, so it is just the header that is wrong. I noticed it only happens for type aliases not interfaces

I can confirm function arguments are fine, this is only happening for types

Fixed in the latest version

Amazing