refactor: export NpmResponse interface

This commit is contained in:
Rhys Arkins 2021-02-24 15:15:22 +01:00
parent 7f75e5768b
commit 566f64cea0

View file

@ -42,7 +42,7 @@ export interface NpmDependency extends ReleaseResult {
sourceDirectory?: string; sourceDirectory?: string;
} }
interface NpmResponse { export interface NpmResponse {
_id: string; _id: string;
name?: string; name?: string;
versions?: Record< versions?: Record<
@ -55,6 +55,8 @@ interface NpmResponse {
homepage?: string; homepage?: string;
deprecated?: boolean; deprecated?: boolean;
gitHead?: string; gitHead?: string;
dependencies?: Record<string, string>;
devDependencies?: Record<string, string>;
} }
>; >;
repository?: { repository?: {