Make external typings re-usable across all the workspaces

Summary: Our external typings were only effective for the main "app" package. In this diff I've made them effective for all other workspaces too, and also cleaned up typescript configs.

Reviewed By: passy

Differential Revision: D21927361

fbshipit-source-id: ceb8009255583d969d79cc11b20dfe8b686f2fb3
This commit is contained in:
Anton Nikolaev
2020-06-08 08:47:29 -07:00
committed by Facebook GitHub Bot
parent df3a6c96ce
commit ecfdeb2276
23 changed files with 18 additions and 55 deletions

29
desktop/types/openssl-wrapper.d.ts vendored Normal file
View File

@@ -0,0 +1,29 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 'openssl-wrapper' {
export type Action =
| 'cms.verify'
| 'genrsa'
| 'pkcs12'
| 'req'
| 'req.new'
| 'req.verify'
| 'verify'
| 'rsa'
| 'smime.verify'
| 'x509.req'
| 'x509';
export function exec(
action: Action,
options: {[key: string]: string},
cb: (error: Error | undefined, buffer: Buffer | undefined) => any,
): void;
}