mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 00:43:39 +08:00
2b87f10738
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
23 lines
669 B
TypeScript
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;
|
|
};
|