Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Typings #106

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Update Typings #106

wants to merge 1 commit into from

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

@@ -104,7 +104,8 @@ export const setupExpressServer = async (expressApp: express.Application): Promi
const appName = req.params.appName

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

@@ -43,6 +43,7 @@ export const isValidMappingStructure = async (structure: MappingStructure): Prom
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