Skip to content

Commit

Permalink
Run type checking in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
NotWoods committed Aug 9, 2024
1 parent 9972e39 commit 56bc11b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm run check
- run: npm run test
2 changes: 1 addition & 1 deletion src/editor/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { toUrl } from './canvas.js';
/** @type {HTMLFormElement} */
const sizes = document.querySelector('#exportSizes');
const maxSizeValue = sizes.querySelector('#maxSize');
const sizeInputs = /** @type {NodeList} */ (
const sizeInputs = /** @type {NodeListOf<HTMLInputElement>} */ (
document.getElementsByName('sizes')
);
const jsonPreview = document.querySelector('.mask__json-view__preview');
Expand Down
4 changes: 2 additions & 2 deletions src/editor/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ function createCanvases(preview) {
const canvases = createCanvases(backgroundPreview);

layers.set(
document.querySelector('input[name="layer"][value="background"'),
document.querySelector('input[name="layer"][value="background"]'),
background,
);

const newLayer = copyLayer(background);

history = new History(
newLayer,
document.querySelector('input[name="layer"][value="background"'),
document.querySelector('input[name="layer"][value="background"]'),
0,
);

Expand Down

0 comments on commit 56bc11b

Please sign in to comment.