We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
void
null
Hey, I just installed this library.
First thing I noticed, I get type mismatch when I create a handler like this:
const handleStartCapture = () => {};
Turns out the interface for ScreenCapture props is this?:
interface Props { onStartCapture: () => null; onEndCapture: (url: string) => null; }
I suggest changing return type of null to void, otherwise we are forced to return a value even if we don't want to.
Additionally, the example in Readme and in npm page does not present onStartCapture as required attribute, so it would be nice to update the example.
onStartCapture
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey, I just installed this library.
First thing I noticed, I get type mismatch when I create a handler like this:
Turns out the interface for ScreenCapture props is this?:
I suggest changing return type of
null
tovoid
, otherwise we are forced to return a value even if we don't want to.Additionally, the example in Readme and in npm page does not present
onStartCapture
as required attribute, so it would be nice to update the example.The text was updated successfully, but these errors were encountered: