-
Notifications
You must be signed in to change notification settings - Fork 20
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
Upgrade TS #683
Upgrade TS #683
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -8,19 +8,19 @@ import ImmutableFileSystem from './ImmutableVolume.js'; | |||
*/ | |||
class RestrictedVolume extends ImmutableFileSystem implements IVolumePartiallyMutable { | |||
#vfs: IFileAccess; | |||
declare promises: any; |
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.
The types are really messed up here
const handleKeySelection = e => { | ||
if (e.keyCode === (13 || 32)) { | ||
const handleKeySelection = (e: KeyboardEvent) => { | ||
if (e.key === 'Enter' || e.key === 'Space') { |
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.
Should improve things
@@ -87,7 +87,7 @@ export const withMDXContent: MosaicMiddleware<ContentProps> = async ( | |||
context: GetServerSidePropsContext | |||
) => { | |||
const { resolvedUrl } = context; | |||
const mosaicMode = context.res.getHeader('X-Mosaic-Mode' || 'active') as MosaicMode; | |||
const mosaicMode = (context.res.getHeader('X-Mosaic-Mode') || 'active') as MosaicMode; |
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.
Another TS flagged issue
63079c3
to
121e324
Compare
No description provided.