1
0
mirror of https://github.com/flarum/core.git synced 2025-10-15 17:04:26 +02:00
Files
php-flarum/js/dist-typings/forum/resolvers/DiscussionPageResolver.d.ts
flarum-bot 823c337c1e Bundled output for commit f8232b9c1b
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-10-30 22:46:26 +00:00

24 lines
937 B
TypeScript

import DefaultResolver from '../../common/resolvers/DefaultResolver';
/**
* A custom route resolver for DiscussionPage that generates the same key to all posts
* on the same discussion. It triggers a scroll when going from one post to another
* in the same discussion.
*/
export default class DiscussionPageResolver extends DefaultResolver {
static scrollToPostNumber: string | null;
/**
* Remove optional parts of a discussion's slug to keep the substring
* that bijectively maps to a discussion object. By default this just
* extracts the numerical ID from the slug. If a custom discussion
* slugging driver is used, this may need to be overriden.
* @param slug
*/
canonicalizeDiscussionSlug(slug: string | undefined): string | undefined;
/**
* @inheritdoc
*/
makeKey(): string;
onmatch(args: any, requestedPath: any, route: any): any;
render(vnode: any): any;
}