Skip to content

Commit 7d851ef

Browse files
committedAug 18, 2023
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

+1-1
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

+2-1
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)
Failed to load comments.