Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
fix: dist-tags attribute #175 (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmkn authored and priscilawebdev committed Oct 11, 2019
1 parent 99621b6 commit 752e2b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/components/Versions/Versions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion types/packageMeta.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface PackageMetaInterface {
versions?: Versions;
distTags?: DistTags;
'dist-tags'?: DistTags;
time?: Time;
latest: {
author?: Author;
Expand Down

0 comments on commit 752e2b9

Please sign in to comment.