Upgrade to TypeScript 4.1
Summary: allow-large-files Upgrade to TypeScript 4.1 Reviewed By: nikoant Differential Revision: D25122073 fbshipit-source-id: 7d2bc6f97595c825c9527b0c6ecab07698d5f981
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c431657a39
commit
8025c49768
@@ -170,7 +170,7 @@ export default class AndroidDevice extends BaseDevice {
|
||||
(_) =>
|
||||
new Promise((resolve, reject) => {
|
||||
this.adb.pull(this.serial, recordingLocation).then((stream) => {
|
||||
stream.on('end', resolve);
|
||||
stream.on('end', resolve as () => void);
|
||||
stream.on('error', reject);
|
||||
stream.pipe(createWriteStream(destination));
|
||||
});
|
||||
|
||||
@@ -157,7 +157,7 @@ class Server extends EventEmitter {
|
||||
'server',
|
||||
);
|
||||
server.emit('listening', port);
|
||||
resolve(rsServer);
|
||||
resolve(rsServer!);
|
||||
});
|
||||
return transportServer;
|
||||
};
|
||||
|
||||
@@ -60,7 +60,7 @@ export function showStatusUpdatesForDuration(
|
||||
removeStatusMessage: (payload: StatusMessageType) => void,
|
||||
): void {
|
||||
showStatusUpdatesForPromise(
|
||||
new Promise((resolve, _reject) => {
|
||||
new Promise<void>((resolve, _reject) => {
|
||||
setTimeout(function () {
|
||||
resolve();
|
||||
}, duration);
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
"rimraf": "^3.0.2",
|
||||
"ts-jest": "^26.0.0",
|
||||
"ts-node": "^8",
|
||||
"typescript": "^4.0.3"
|
||||
"typescript": "^4.1.2"
|
||||
},
|
||||
"scripts": {
|
||||
"reset": "rimraf lib *.tsbuildinfo",
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"prettier": "^2.0.0",
|
||||
"ts-jest": "^26.0.0",
|
||||
"tslint-config-prettier": "^1.18.0",
|
||||
"typescript": "^4.0.3"
|
||||
"typescript": "^4.1.2"
|
||||
},
|
||||
"scripts": {
|
||||
"reset": "rimraf lib *.tsbuildinfo",
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"rimraf": "^3.0.2",
|
||||
"ts-jest": "^26.0.0",
|
||||
"ts-node": "^8",
|
||||
"typescript": "^4.0.3"
|
||||
"typescript": "^4.1.2"
|
||||
},
|
||||
"scripts": {
|
||||
"reset": "rimraf lib *.tsbuildinfo",
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^26.0.3",
|
||||
"typescript": "^4.0.3"
|
||||
"typescript": "^4.1.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@ant-design/icons": "^4.2.2",
|
||||
|
||||
@@ -224,7 +224,7 @@
|
||||
"tmp": "^0.2.1",
|
||||
"ts-jest": "^26.0.0",
|
||||
"ts-node": "^8.8.1",
|
||||
"typescript": "^4.0.3",
|
||||
"typescript": "^4.1.2",
|
||||
"uuid": "^8.3.0",
|
||||
"yargs": "^16.1.1",
|
||||
"yazl": "^2.5.1"
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"rimraf": "^3.0.2",
|
||||
"ts-jest": "^26.0.0",
|
||||
"ts-node": "^8",
|
||||
"typescript": "^4.0.3"
|
||||
"typescript": "^4.1.2"
|
||||
},
|
||||
"scripts": {
|
||||
"reset": "rimraf lib *.tsbuildinfo",
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
"rimraf": "^3.0.2",
|
||||
"ts-jest": "^26.0.0",
|
||||
"ts-node": "^8",
|
||||
"typescript": "^4.0.3"
|
||||
"typescript": "^4.1.2"
|
||||
},
|
||||
"scripts": {
|
||||
"reset": "rimraf lib *.tsbuildinfo",
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
"rimraf": "^3.0.2",
|
||||
"ts-jest": "^26.0.0",
|
||||
"ts-node": "^8",
|
||||
"typescript": "^4.0.3"
|
||||
"typescript": "^4.1.2"
|
||||
},
|
||||
"scripts": {
|
||||
"reset": "rimraf lib *.tsbuildinfo",
|
||||
|
||||
@@ -49,7 +49,7 @@ const openNavigationPluginDB: () => Promise<IDBDatabase> = () => {
|
||||
};
|
||||
|
||||
export const writeBookmarkToDB = (bookmark: Bookmark) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
openNavigationPluginDB()
|
||||
.then((db: IDBDatabase) => {
|
||||
const bookmarksObjectStore = db
|
||||
|
||||
@@ -11,7 +11,7 @@ import {TestUtils} from 'flipper-plugin';
|
||||
import * as plugin from '..';
|
||||
|
||||
async function sleep(ms: number) {
|
||||
return new Promise((resolve) => setTimeout(() => resolve(), ms));
|
||||
return new Promise<void>((resolve) => setTimeout(() => resolve(), ms));
|
||||
}
|
||||
|
||||
// this testing is inspired by Flipper sample app
|
||||
|
||||
@@ -24,7 +24,7 @@ export default class Watchman {
|
||||
}
|
||||
this.client = new Client();
|
||||
this.client.setMaxListeners(250);
|
||||
await new Promise((resolve, reject) => {
|
||||
await new Promise<void>((resolve, reject) => {
|
||||
const onError = (err: Error) => {
|
||||
this.client!.removeAllListeners('error');
|
||||
reject(err);
|
||||
|
||||
@@ -12763,10 +12763,10 @@ typedarray@^0.0.6:
|
||||
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
|
||||
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
|
||||
|
||||
typescript@^4.0.3:
|
||||
version "4.0.3"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.3.tgz#153bbd468ef07725c1df9c77e8b453f8d36abba5"
|
||||
integrity sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg==
|
||||
typescript@^4.1.2:
|
||||
version "4.1.2"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.2.tgz#6369ef22516fe5e10304aae5a5c4862db55380e9"
|
||||
integrity sha512-thGloWsGH3SOxv1SoY7QojKi0tc+8FnOmiarEGMbd/lar7QOEd3hvlx3Fp5y6FlDUGl9L+pd4n2e+oToGMmhRQ==
|
||||
|
||||
ua-parser-js@^0.7.18:
|
||||
version "0.7.20"
|
||||
|
||||
@@ -45,6 +45,6 @@
|
||||
"eslint-plugin-react": "^7.21.5",
|
||||
"eslint-plugin-react-hooks": "^4.2.0",
|
||||
"prettier": "^2.1.2",
|
||||
"typescript": "^4.0.5"
|
||||
"typescript": "^4.1.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1774,10 +1774,10 @@ type-fest@^0.8.1:
|
||||
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d"
|
||||
integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==
|
||||
|
||||
typescript@^4.0.5:
|
||||
version "4.0.5"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.5.tgz#ae9dddfd1069f1cb5beb3ef3b2170dd7c1332389"
|
||||
integrity sha512-ywmr/VrTVCmNTJ6iV2LwIrfG1P+lv6luD8sUJs+2eI9NLGigaN+nUQc13iHqisq7bra9lnmUSYqbJvegraBOPQ==
|
||||
typescript@^4.1.2:
|
||||
version "4.1.2"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.2.tgz#6369ef22516fe5e10304aae5a5c4862db55380e9"
|
||||
integrity sha512-thGloWsGH3SOxv1SoY7QojKi0tc+8FnOmiarEGMbd/lar7QOEd3hvlx3Fp5y6FlDUGl9L+pd4n2e+oToGMmhRQ==
|
||||
|
||||
uri-js@^4.2.2:
|
||||
version "4.2.2"
|
||||
|
||||
Reference in New Issue
Block a user