Skip to content

Commit cb00dc1

Browse files
committed
Fix type errors caused by a new version of ultimate-crosscode-typedefs
1 parent a214f0c commit cb00dc1

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

pnpm-lock.yaml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/mod-options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ export function modOptionsPoststart() {
416416
const isInGame = sc.model.currentState == sc.GAME_MODEL_STATE.GAME && ig.interact.entries.length == 0
417417
for (const controlConfig of controlsToSet) {
418418
if (!controlConfig.global && !isInGame) continue
419-
const id = controlConfig.id.substring('keys-'.length)
419+
const id = controlConfig.id.substring('keys-'.length) as ig.Input.KnownAction
420420
if (controlConfig.pressEvent && ig.input.pressed(id)) {
421421
controlConfig.pressEvent.bind(controlConfig)()
422422
}

src/plugin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ export default class ModManager {
6969
window.nax.ccuilib ??= {}
7070
// @ts-expect-error
7171
await import('nax-ccuilib/src/ui/input-field-cursor.js')
72-
// @ts-expect-error
7372
await import('nax-ccuilib/src/ui/input-field.js')
7473
}
7574
}

0 commit comments

Comments
 (0)