Skip to content

Commit

Permalink
fix(TagType): narrowing string to TagType
Browse files Browse the repository at this point in the history
issue #82
  • Loading branch information
sabertazimi committed Aug 2, 2021
1 parent 2e0c2a9 commit f3be81d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@ export interface SiteMetadata {

export declare type TagType = string;

export interface TagsType {
[key: TagType]: number;
}

interface PostMetaType {
slug: string;
title: string;
subtitle: string;
author: string;
date: string;
tags: string[];
tags: TagType[];
timeToRead: string;
prevPost: string;
nextPost: string;
Expand Down

0 comments on commit f3be81d

Please sign in to comment.