sbg-api
Version:
Pre-processing all source posts before rendering from hexo. Useful for low-end devices to prevent using large number of hexo plugins.
20 lines (19 loc) • 495 B
TypeScript
import Hexo from 'hexo';
interface objectCategoryTags {
permalink: string;
name: string;
latest: string;
}
interface returnCategoryTags {
[key: string]: any;
tags: objectCategoryTags[];
categories: objectCategoryTags[];
}
declare function getCategoryTags(hexo: Hexo): returnCategoryTags;
/**
* get latest date from array of date
* @param arr
* @returns
*/
export declare function getLatestFromArrayDates(arr: string[] | Date[]): Date;
export default getCategoryTags;