Skip to content

Commit 14ec3fe

Browse files
committed
chore: add and import types
1 parent 54a411c commit 14ec3fe

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export { default as VueSignaturePad } from './components/VueSignaturePad.vue'
2-
export type { CanvasOptions, Props, WaterMarkObj } from './types'
2+
export type { CanvasOptions, Props, WaterMarkObj, SignatureRef, CanvasSignatureRef } from './types'

src/types/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ export interface SignatureRef {
3131
penColor?: string
3232
}
3333

34+
export interface CanvasSignatureRef {
35+
isCanvasEmpty?: () => void
36+
saveSignature?: (format?: string) => void
37+
}
38+
3439
export interface Props {
3540
options: Options
3641
width: string

0 commit comments

Comments
 (0)