-
-
Notifications
You must be signed in to change notification settings - Fork 127
add typescript definitions #25
New issue
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
Changes from 1 commit
ea9a873
ae9fa04
f2536de
060fe9b
a2fae62
61e4c2f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
|
|
||
| import * as React from 'react'; | ||
|
|
||
| // signature_pad's props | ||
| // (taken from https://github.com/szimek/signature_pad/blob/e2af461bca7ceb7cc5afb8349930908ca19f2f56/src/signature_pad.ts#L23) | ||
|
||
| export interface IOptions { | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should this be |
||
|
|
@@ -15,8 +18,8 @@ export interface IOptions { | |
|
|
||
| // props specific to the React wrapper | ||
| export interface SignatureCanvasProps extends IOptions { | ||
| canvasProps: any; | ||
| clearOnResize: boolean; | ||
| canvasProps?: any; | ||
agilgur5 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| clearOnResize?: boolean; | ||
| } | ||
|
|
||
| export default class SignatureCanvas extends React.Component<SignatureCanvasProps> {} | ||
agilgur5 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Uh oh!
There was an error while loading. Please reload this page.