Use BaseDevice from flipper-frontend-core in flipper-ui-core

Summary: Use BasDevice definition from flipper-frontend-core in flipper-ui-core and remove the redundant definition from flipper-ui-core

Reviewed By: lblasa

Differential Revision: D37234785

fbshipit-source-id: 6e768090a197c1d2c49cb1cd573acea12fb65d24
This commit is contained in:
Andrey Goncharov
2022-06-20 12:18:40 -07:00
committed by Facebook GitHub Bot
parent ef5fa275a3
commit fd380a4c1e
32 changed files with 29 additions and 462 deletions

View File

@@ -258,7 +258,6 @@ export default class LayoutPlugin extends FlipperPlugin<
if (this.props.isArchivedDevice) {
Promise.resolve(this.device)
.then((d) => {
// @ts-expect-error
const handle = (d as ArchivedDevice).getArchivedScreenshotHandle();
if (!handle) {
throw new Error('No screenshot attached.');