Update index.d.ts
No children specified
this should be merged
This has not been merged
I don't have access to merge, but go for it!
yes this is really needed. please 🙏 merge this.
If this change is blocking anyone, please apply this change using patch-package. Or if you're using Yarn or pnpm, you can use yarn patch or pnpm patch.
I've created a package with this update
better use PropsWithChildren
still not working
ERROR:
No overload matches this call.
Overload 1 of 2, '(props: RBSheetProps | Readonly<RBSheetProps>): RBSheet', gave the following error.
Type '{ children: Element; ref: MutableRefObject<any>; closeOnDragDown: true; closeOnPressMask: false; customStyles: { wrapper: { backgroundColor: string; }; draggableIcon: { ...; }; }; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<RBSheet> & Readonly<RBSheetProps>'.
Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<RBSheet> & Readonly<RBSheetProps>'.
Overload 2 of 2, '(props: RBSheetProps, context: any): RBSheet', gave the following error.
Type '{ children: Element; ref: MutableRefObject<any>; closeOnDragDown: true; closeOnPressMask: false; customStyles: { wrapper: { backgroundColor: string; }; draggableIcon: { ...; }; }; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<RBSheet> & Readonly<RBSheetProps>'.
Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<RBSheet> & Readonly<RBSheetProps>'.ts(2769)
```