Skip to content

Commit 7d851ef

Browse files
committed
Update declaration
1 parent bfd78b5 commit 7d851ef

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scratchcard-js",
3-
"version": "1.5.3",
3+
"version": "1.5.4",
44
"description": "Create scratch card in browser.",
55
"main": "./build/scratchcard.min.js",
66
"scripts": {

types/ScratchCard.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { SC_CONFIG, SCRATCH_TYPE } from './ScratchCardConfig';
22
declare class ScratchCard {
3+
get canvas(): HTMLCanvasElement;
34
readonly config: SC_CONFIG;
45
readonly scratchType: SCRATCH_TYPE;
56
readonly ctx: CanvasRenderingContext2D;
67
readonly container: HTMLElement;
78
private position;
8-
private canvas;
9+
private _canvas;
910
private readyToClear;
1011
private brush;
1112
private callbackDone;

0 commit comments

Comments
 (0)