-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
base: main
Are you sure you want to change the base?
Update Typings #106
Conversation
@@ -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 ??? |
There was a problem hiding this comment.
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] ??= {} |
There was a problem hiding this comment.
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 ? |
There was a problem hiding this comment.
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?
require
syntax to importRecord
types instead of manually recreating that everytime