Migrate user
Summary: Migrate user and introduce a global declarations file. Reviewed By: danielbuechele Differential Revision: D16690480 fbshipit-source-id: be4e5218715dcae4b403b24cdbc2f3e89728dd59
This commit is contained in:
committed by
Facebook Github Bot
parent
4afc417ea5
commit
e56d3a4c6d
@@ -23,7 +23,7 @@ import {
|
||||
} from '../reducers/application.tsx';
|
||||
import type {Logger} from '../fb-interfaces/Logger.js';
|
||||
import {Idler} from '../utils/Idler';
|
||||
import {shareFlipperData} from '../fb-stubs/user';
|
||||
import {shareFlipperData} from '../fb-stubs/user.tsx';
|
||||
import {exportStore, EXPORT_FLIPPER_TRACE_EVENT} from '../utils/exportData.js';
|
||||
import PropTypes from 'prop-types';
|
||||
import {clipboard} from 'electron';
|
||||
|
||||
@@ -17,8 +17,8 @@ import {
|
||||
Link,
|
||||
colors,
|
||||
} from 'flipper';
|
||||
import {writeKeychain, getUser} from '../fb-stubs/user';
|
||||
import {login} from '../reducers/user.tsx';
|
||||
import {writeKeychain, getUser} from '../fb-stubs/user.tsx';
|
||||
import {connect} from 'react-redux';
|
||||
|
||||
const Container = styled(FlexColumn)({
|
||||
|
||||
@@ -21,20 +21,20 @@ export async function shareFlipperData(
|
||||
trace: string,
|
||||
): Promise<
|
||||
| {
|
||||
id: string,
|
||||
os: 'string',
|
||||
deviceType: string,
|
||||
plugins: string[],
|
||||
fileUrl: string,
|
||||
flipperUrl: string,
|
||||
id: string;
|
||||
os: 'string';
|
||||
deviceType: string;
|
||||
plugins: string[];
|
||||
fileUrl: string;
|
||||
flipperUrl: string;
|
||||
}
|
||||
| {
|
||||
error: string,
|
||||
error_class: string,
|
||||
stacktrace: string,
|
||||
},
|
||||
error: string;
|
||||
error_class: string;
|
||||
stacktrace: string;
|
||||
}
|
||||
> {
|
||||
new window.Notification('Feature not implemented');
|
||||
new Notification('Feature not implemented');
|
||||
return Promise.reject();
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ export * from './ui/index.js';
|
||||
export * from './utils/index.js';
|
||||
export {default as GK} from './fb-stubs/GK.tsx';
|
||||
export {default as createPaste} from './fb-stubs/createPaste.tsx';
|
||||
export {graphQLQuery} from './fb-stubs/user.js';
|
||||
export {graphQLQuery} from './fb-stubs/user.tsx';
|
||||
export {
|
||||
FlipperBasePlugin,
|
||||
FlipperPlugin,
|
||||
|
||||
@@ -16,6 +16,6 @@
|
||||
"flipper": ["./src/index.js"]
|
||||
}
|
||||
},
|
||||
"include": ["src/**/*", "types/globals.tsx"],
|
||||
"include": ["src/**/*", "types/globals.tsx", "types/nodejs.tsx"],
|
||||
"exclude": ["node_modules", "**/*.spec.ts"]
|
||||
}
|
||||
|
||||
12
types/nodejs.tsx
Normal file
12
types/nodejs.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Copyright 2018-present Facebook.
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
* @format
|
||||
*/
|
||||
|
||||
declare module NodeJS {
|
||||
interface Global {
|
||||
electronRequire: (name: string) => void;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user