import { ReactNode } from "react" ; import { expectAssignable } from "@typescript/tests" ; import { getSlots } from "@components/shared" ; const node = null ; const result = getSlots ( node , { _ : { defaultWrapper : null , required : [ "text" ] } , icon : { className : "o-ui-accordion-icon" } , text : { className : "o-ui-accordion-title" , size : "inherit" } } ) ; expectAssignable < keyof typeof result > ( "icon" ) ; expectAssignable < keyof typeof result > ( "text" ) ; expectAssignable < keyof typeof result > ( "other" ) ;