UNPKG

hexo-util

Version:

Utilities for Hexo.

16 lines (15 loc) 337 B
interface Options { segments?: { [key: string]: RegExp | string; }; } declare class Permalink { rule: string; regex: RegExp; params: string[]; constructor(rule: string, options?: Options); test(str: string): boolean; parse(str: string): {}; stringify(data: any): string; } export = Permalink;