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