Files
flipper/desktop/types/npm-api.d.ts
Andres Suarez 79023ee190 Update copyright headers from Facebook to Meta
Reviewed By: bhamodi

Differential Revision: D33331422

fbshipit-source-id: 016e8dcc0c0c7f1fc353a348b54fda0d5e2ddc01
2021-12-27 14:31:45 -08:00

38 lines
736 B
TypeScript

/**
* Copyright (c) Meta Platforms, Inc. and 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;
[name: string]: string;
}
}