react-hook-dialog icon indicating copy to clipboard operation
react-hook-dialog copied to clipboard

Props are not type safe

Open jsun969 opened this issue 3 years ago • 0 comments

const dialogs = createDialogs({
  firstDialog: { one: '' },
  secondDialog: { two: '', three: '' },
});
const { open } = dialog.useDialog('firstDialog')

open({ })
//    ^ { one?: string, two?: string, three?: string }

jsun969 avatar Aug 19 '22 12:08 jsun969