Produce tsc typings for "flipper" package

Summary: This diffs refactors tsc projects structure and structure of our custom typings to allow producing typescript typings for "flipper" package. In next diffs I'm going to use the produced typings to check compatibility of plugins with certain versions of Flipper, e.g. to check whether plugin is compatible with current "stable" and "insiders" version.

Reviewed By: passy

Differential Revision: D26997158

fbshipit-source-id: a0416c7139bf08ec9d175730da4c4c2a8768eeb7
This commit is contained in:
Anton Nikolaev
2021-03-17 14:01:10 -07:00
committed by Facebook GitHub Bot
parent 779e89db1d
commit f468f0e07d
26 changed files with 207 additions and 109 deletions

16
desktop/types/memoize-weak.d.ts vendored Normal file
View File

@@ -0,0 +1,16 @@
/**
* 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 'memoize-weak' {
export default function memoize<T extends (...args: any) => any>(
fn: T,
): T & {
clear(...args: Parameters<T> | []): void;
};
}