@allow-large-files Upgrade typescript

Summary: This diff updates the typescript version and it fixes `yarn lint:tsc`. It also successfully pointed out fes of the problems in our codebase. I have fixed those problems

Reviewed By: mweststrate

Differential Revision: D21548003

fbshipit-source-id: e69c986ee3c763588d9e1e290dad08d1cf1976a8
This commit is contained in:
Pritesh Nandgaonkar
2020-05-13 06:55:10 -07:00
committed by Facebook GitHub Bot
parent 76a177a282
commit dcaff4babc
7 changed files with 12 additions and 5 deletions

View File

@@ -14,6 +14,7 @@ import isProduction from './utils/isProduction';
export const store = createStore<StoreState, Actions, any, any>(
reducers,
// @ts-ignore Type definition mismatch
window.__REDUX_DEVTOOLS_EXTENSION__
? window.__REDUX_DEVTOOLS_EXTENSION__({
// @ts-ignore: stateSanitizer is not part of type definition.

View File

@@ -111,7 +111,6 @@ function Visualizer(props: {
userSelect: 'none',
}}></div>
)}
/>
</VisualizerContainer>
);
}

View File

@@ -194,8 +194,8 @@ export default class FilterToken extends PureComponent<Props> {
value = [];
}
const newFilter: Filter = {
type: 'enum',
...filter,
type: 'enum',
value,
};
this.props.onReplace(index, newFilter);

View File

@@ -204,7 +204,7 @@
"tmp": "^0.2.1",
"ts-jest": "^25.4.0",
"ts-node": "^8.8.1",
"typescript": "^3.7.2",
"typescript": "^3.9.2",
"yargs": "^15.3.1",
"yazl": "^2.5.1"
},

View File

@@ -141,7 +141,7 @@ export default class FlipperImagesPlugin extends FlipperPlugin<
}
pluginData = {
...pluginData,
events: [{eventId: index, ...event}, ...pluginData.events],
events: [{...event, eventId: index}, ...pluginData.events],
};
});
const idSet: Set<string> = levels.reduce((acc, level: CacheInfo) => {

View File

@@ -2,6 +2,8 @@
"extends": "./tsconfig.base.json",
"compilerOptions": {
"baseUrl": ".",
"skipLibCheck": true,
"noEmit": true,
"paths": {
"flipper": ["./app/src"],
"flipper-doctor": ["./doctor/src"],
@@ -11,5 +13,5 @@
"flipper-babel-transformer": ["./babel-transformer/src"]
}
},
"exclude": ["node_modules", "**/*.spec.ts"]
"exclude": ["**/node_modules/", "**/*.spec.ts"]
}

View File

@@ -12705,6 +12705,11 @@ typescript@^3.7.2:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.2.tgz#27e489b95fa5909445e9fef5ee48d81697ad18fb"
integrity sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ==
typescript@^3.9.2:
version "3.9.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.2.tgz#64e9c8e9be6ea583c54607677dd4680a1cf35db9"
integrity sha512-q2ktq4n/uLuNNShyayit+DTobV2ApPEo/6so68JaD5ojvc/6GClBipedB9zNWYxRSAlZXAe405Rlijzl6qDiSw==
ua-parser-js@^0.7.18:
version "0.7.20"
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.20.tgz#7527178b82f6a62a0f243d1f94fd30e3e3c21098"