3 ms·
The types in the Code section of the documentation are definitely some of the documentation of all time: WithSlotShorthandValue<WithSlotRenderFunction<Omit
by insin 3y ago
The types in the Code section of the documentation are definitely some of the documentation of all time:
WithSlotShorthandValue<WithSlotRenderFunction<Omit<ComponentProps<AvatarSlots, "root">, "color">
& { active?: "active" | "inactive" | "unset"; activeAppearance?: "ring" | ... 2 more ...; ... 4
more ...; size?: AvatarSize | undefined; } & RefAttributes<...>>> | null | undefined
- globalise83 3y agoEnterprise-ready Typescript
- mejutoco 3y agoUff.The active one is optional, but also allows "unset" as a string, and does not allow null or undefined. Why not just have it optional and lack of it means it is unset? https://www.typescriptlang.org/docs/handbook/advanced-types.html https://www.typescriptlang.org/docs/handbook/advanced-types....