UNPKG

1.24 kBTypeScriptView Raw
1import { GitRepository } from './git-repository';
2import { Person } from './person';
3import { RawPackageManifest } from './raw-package-manifest';
4/**
5 * `PackageManifest` represents the manifest describing a specific version
6 * of a package.
7 *
8 * @remarks
9 * For some packages, especially legacy ones,
10 * the properties may be mistyped due to incorrect data present on the registry.
11 *
12 * @see {@link RawPackageManifest}
13 */
14export interface PackageManifest extends RawPackageManifest {
15 /** Package version ID (for example, `foo@1.0.0` or `@bar/baz@1.0.0`) */
16 readonly id: string;
17 /** Publishing timestamp */
18 readonly createdAt: string;
19 /**
20 * User who published this version of the package
21 *
22 * @see {@link Person}
23 */
24 readonly publisher: Person;
25 /** Normalized license */
26 readonly license?: string;
27 /** Normalized git repository */
28 readonly gitRepository?: GitRepository;
29 /** Name of the corresponding DefinitelyTyped package, if any */
30 readonly definitelyTypedName?: string;
31 /** Name of the corresponding untyped package (w.r.t. DefinitelyTyped) */
32 readonly untypedName?: string;
33}
34//# sourceMappingURL=package-manifest.d.ts.map
\No newline at end of file