Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/878 1) Enabled eslint error reporting for unresolved imports and fixed all the errors 2) Enabled eslint for typings (d.ts) and fixed all the errors Reviewed By: passy Differential Revision: D20335151 fbshipit-source-id: 7b142281a406b32df0f02a5cd0d7d05eba941acd
37 lines
706 B
TypeScript
37 lines
706 B
TypeScript
/**
|
|
* 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
|
|
*/
|
|
|
|
// Very incomplete stub with only the methods we use defined.
|
|
declare module 'npm-api' {
|
|
export default class NpmApi {
|
|
constructor(...args: any[]);
|
|
|
|
list(...args: any[]): any;
|
|
|
|
maintainer(...args: any[]): any;
|
|
|
|
repo(name: string): Repository;
|
|
|
|
reset(...args: any[]): any;
|
|
|
|
use(...args: any[]): any;
|
|
|
|
view(...args: any[]): any;
|
|
}
|
|
|
|
export class Repository {
|
|
package(): Promise<Package>;
|
|
}
|
|
|
|
export interface Package {
|
|
name: string;
|
|
version: string;
|
|
}
|
|
}
|