From da6cd854c0f5898d59ab0d0e623370a87a9cb113 Mon Sep 17 00:00:00 2001 From: Benny Joo Date: Wed, 22 Feb 2023 09:49:18 +0000 Subject: [PATCH] update JSDoc of CreateSlotsAndSlotProps --- packages/mui-joy/src/utils/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mui-joy/src/utils/types.ts b/packages/mui-joy/src/utils/types.ts index 30aab8ff7a4ad7..a7d705423c24d9 100644 --- a/packages/mui-joy/src/utils/types.ts +++ b/packages/mui-joy/src/utils/types.ts @@ -19,9 +19,9 @@ export type SlotProps); /** - * Use T to make sure that K contains all of the keys of T + * Use the keys of `Slots` to make sure that K contains all of the keys * - * @example CreateSlotsAndSlotProps<'root' | 'decorator', { root: ..., decorator: ... }> + * @example CreateSlotsAndSlotProps<{ root: React.ElementType, decorator: React.ElementType }, { root: ..., decorator: ... }> */ export type CreateSlotsAndSlotProps> = { slots?: Partial;