@@ -2,7 +2,7 @@ import * as React from "react";
22import { cx } from "@renderlesskit/react" ;
33
44import { useTheme } from "../theme" ;
5- import { Split } from "../utils/types" ;
5+ // import { Split } from "../utils/types";
66import { isFunction , objectKeys } from "../utils" ;
77import { useHover , useMediaQuery } from "../hooks" ;
88import { Toast , ToastPlacement , useToasts , useToastsReturnType } from "./index" ;
@@ -34,7 +34,7 @@ export type ToastsContainerProps = {
3434
3535export const ToastsContainer = ( props : ToastsContainerProps ) => {
3636 const { toasts, placement, updateHeight, calculateOffset } = props ;
37- const [ side , position ] = placement . split ( "-" ) as Split < typeof placement , "-" > ;
37+ const [ side , position ] = placement . split ( "-" ) as any ;
3838
3939 const [ isMobile ] = useMediaQuery ( "(max-width: 640px)" ) ;
4040 const { hoverProps, isHovered } = useHover ( ) ;
@@ -113,7 +113,7 @@ export const StackableToast = (props: StackableToastProps) => {
113113 ) ;
114114
115115 const isToastVisible = visible ;
116- const [ side , position ] = placement . split ( "-" ) as Split < typeof placement , "-" > ;
116+ const [ side , position ] = placement . split ( "-" ) as any ;
117117 const sortedIndex = toastsLength - ( index + 1 ) ;
118118 const clampedIndex =
119119 sortedIndex > visibleToasts ? visibleToasts : sortedIndex ;
0 commit comments