1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 17:36:38 +02:00

Bundled output for commit 29c290e78f

Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
This commit is contained in:
flarum-bot
2021-12-01 16:32:02 +00:00
parent 29c290e78f
commit 2b87f10738
8 changed files with 31 additions and 25 deletions

View File

@@ -1,6 +1,22 @@
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.
*
* @param {App} app
*/
export default function _default(app: any): void;
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;
};