Closed renchris closed 4 weeks ago
I am on the latest dependencies "@ark-ui/react": "^3.2.0"
and "@park-ui/panda-preset": "^0.38.0",
@renchris
Thanks for reporting the issue. I checked on the. Park repository and the Ark UI repo (consumer) and I could not find any typescript issue. Please try to restart the TypeScript Server, ensure you have the latest dependencies and all Panda and Ark related dependencies are identical (monorepo).
@cschroeter
From the create-style-context.tsx
file, the Props type is
type Props = Record<string, unknown>
From the dialog.tsx
file, the RootProps type is
export interface RootProps extends Dialog.RootProps, DialogVariantProps {}
Dialog.RootProps is
export interface DialogRootProps extends UseDialogProps, UsePresenceProps {
children?: ReactNode;
}
{ children?: ReactNode; }
does not satisfy on Record<string, unknown>
I re-ran my server and am on the latest dependencies "typescript": "5.4.5"
and "@ark-ui/react": "^3.2.1",
What is Dialog.RootProps
for you? It makes sense that a ReactNode children object does not conform to the string key Record type
The Dialog Component https://github.com/cschroeter/park-ui/blob/main/components/panda/react/src/components/ui/dialog.tsx has an error of
on RootProps