Skip to content

Commit

Permalink
Allow for undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthHater committed Jan 8, 2021
1 parent 61a2540 commit cfbcaad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/package-url.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ declare module "packageurl-js" {
/**
* some name prefix such as a Maven groupid, a Docker image owner, a GitHub user or organization. Optional and type-specific.
*/
namespace: string;
namespace: string | undefined;

/**
* the name of the package. Required.
Expand All @@ -48,22 +48,22 @@ declare module "packageurl-js" {
/**
* the version of the package. Optional.
*/
version: string;
version: string | undefined;

/**
* extra qualifying data for a package such as an OS, architecture, a distro, etc. Optional and type-specific.
*/
qualifiers: {
[key: string]: string;
};
} | undefined;

/**
* extra subpath within a package, relative to the package root. Optional.
*/
subpath: string;
subpath: string | undefined;

constructor(type: string, namespace: string, name: string, version: string,
qualifiers: { [key: string]: string; }, subpath: string);
constructor(type: string, namespace: string | undefined, name: string, version: string | undefined,
qualifiers: { [key: string]: string; } | undefined, subpath: string | undefined);

/**
* Converts the PackageURL to a string
Expand Down

0 comments on commit cfbcaad

Please sign in to comment.