Skip to content

Update Typings#106

Draft
sakgoyal wants to merge 1 commit intoItsRiprod:mainfrom
sakgoyal:types
Draft

Update Typings#106
sakgoyal wants to merge 1 commit intoItsRiprod:mainfrom
sakgoyal:types

Conversation

@sakgoyal
Copy link

@sakgoyal sakgoyal commented Feb 5, 2025

  • Update Dependencies
  • make TS config more strict
    • but did not enable noUncheckedIndexAccess yet
  • changed require syntax to import
  • used built in Record types instead of manually recreating that everytime
  • changed the package type to module


if (appName === 'client' || appName == null) {
handleClientConnection(appName, req, res, next)
// DID YOU MEAN && appName !== null ???
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im a little confused by this check. just want to make sure this was intended or not

if (!mappingProfile[button.key]) {
mappingProfile[button.key] = {}
}
mappingProfile[button.key] ??= {}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this still results in an error. ButtonMapping seems to have a type that is not compatible or something. needs review

return false
}

// structure.actions.every ?
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could these be replaced by .every iterators instead of a regular for loop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant