Skip to content

Commit

Permalink
Improve type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
vpmedia committed Dec 3, 2024
1 parent 2637bff commit 29a209c
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/phaser/core/scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ export class Scene {

/**
* TBD.
* @param {number} width - TBD.
* @param {number} height - TBD.
*/
resize() {
resize(width, height) {
// inherit
}

Expand Down
1 change: 1 addition & 0 deletions src/phaser/display/canvas/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const setBackgroundColor = (canvas, color) => {
*/
export const setTouchAction = (canvas, value = 'none') => {
value = value || 'none';
// @ts-ignore
canvas.style.msTouchAction = value;
canvas.style['ms-touch-action'] = value;
canvas.style['touch-action'] = value;
Expand Down
2 changes: 1 addition & 1 deletion src/phaser/geom/util/ellipse.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* TBD.
* @param {object} a - TBD.
* @param {import('../ellipse.js').Ellipse} a - TBD.
* @param {number} x - TBD.
* @param {number} y - TBD.
* @returns {boolean} TBD.
Expand Down
4 changes: 3 additions & 1 deletion types/phaser/core/scene.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ export class Scene {
update(): void;
/**
* TBD.
* @param {number} width - TBD.
* @param {number} height - TBD.
*/
resize(): void;
resize(width: number, height: number): void;
/**
* TBD.
*/
Expand Down
2 changes: 1 addition & 1 deletion types/phaser/core/scene.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion types/phaser/display/canvas/util.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion types/phaser/geom/util/ellipse.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export function contains(a: object, x: number, y: number): boolean;
export function contains(a: import("../ellipse.js").Ellipse, x: number, y: number): boolean;
//# sourceMappingURL=ellipse.d.ts.map
2 changes: 1 addition & 1 deletion types/phaser/geom/util/ellipse.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 29a209c

Please sign in to comment.