Skip to content

Commit a2fae62

Browse files
committed
(format/types): use standard style for types
- no semicolons, no newline at the top - also change props link to be on one line -- it's important enough that I don't think it should be in parens
1 parent 060fe9b commit a2fae62

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

src/index.d.ts

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
1+
import * as React from 'react'
12

2-
import * as React from 'react';
3-
4-
// signature_pad's props
5-
// (taken from https://github.com/szimek/signature_pad/blob/e2af461bca7ceb7cc5afb8349930908ca19f2f56/src/signature_pad.ts#L23)
3+
// signature_pad's props from https://github.com/szimek/signature_pad/blob/e2af461bca7ceb7cc5afb8349930908ca19f2f56/src/signature_pad.ts#L23
64
export interface IOptions {
7-
dotSize?: number | (() => number);
8-
minWidth?: number;
9-
maxWidth?: number;
10-
minDistance?: number;
11-
backgroundColor?: string;
12-
penColor?: string;
13-
throttle?: number;
14-
velocityFilterWeight?: number;
15-
onBegin?: (event: MouseEvent | Touch) => void;
16-
onEnd?: (event: MouseEvent | Touch) => void;
5+
dotSize?: number | (() => number),
6+
minWidth?: number,
7+
maxWidth?: number,
8+
minDistance?: number,
9+
backgroundColor?: string,
10+
penColor?: string,
11+
throttle?: number,
12+
velocityFilterWeight?: number,
13+
onBegin?: (event: MouseEvent | Touch) => void,
14+
onEnd?: (event: MouseEvent | Touch) => void,
1715
}
1816

1917
// props specific to the React wrapper
2018
export interface SignatureCanvasProps extends IOptions {
21-
canvasProps?: any;
22-
clearOnResize?: boolean;
19+
canvasProps?: any,
20+
clearOnResize?: boolean
2321
}
2422

2523
export default class SignatureCanvas extends React.Component<SignatureCanvasProps> {}

0 commit comments

Comments
 (0)