Files
blog/node_modules/hexo-util/dist/permalink.d.ts
2025-07-16 16:30:56 +00:00

16 lines
337 B
TypeScript

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;