fix: dist-tags attribute #175 (#178)

This commit is contained in:
Thomas Klein 2019-10-12 00:06:18 +02:00 committed by Priscila Oliveira
parent 99621b6baf
commit 752e2b963d
2 changed files with 1 additions and 2 deletions

View File

@ -20,7 +20,6 @@ const Versions: React.FC = () => {
return null;
}
// @ts-ignore - Property 'dist-tags' does not exist on type 'PackageMetaInterface'
const { versions = {}, time = {}, [DIST_TAGS]: distTags = {} } = packageMeta;
return (

View File

@ -1,6 +1,6 @@
export interface PackageMetaInterface {
versions?: Versions;
distTags?: DistTags;
'dist-tags'?: DistTags;
time?: Time;
latest: {
author?: Author;