framework/js/dist-typings/forum/routes.d.ts
flarum-bot 2b87f10738 Bundled output for commit 29c290e78f
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-12-01 16:32:02 +00:00

23 lines
669 B
TypeScript

import ForumApplication from './ForumApplication';
import Discussion from '../common/models/Discussion';
import Post from '../common/models/Post';
import User from '../common/models/User';
/**
* The `routes` initializer defines the forum app's routes.
*/
export default function (app: ForumApplication): void;
export declare function makeRouteHelpers(app: ForumApplication): {
/**
* Generate a URL to a discussion.
*/
discussion: (discussion: Discussion, near: number) => string;
/**
* Generate a URL to a post.
*/
post: (post: Post) => string;
/**
* Generate a URL to a user.
*/
user: (user: User) => string;
};