1
0
mirror of https://github.com/flarum/core.git synced 2025-08-09 01:46:35 +02:00

Bundled output for commit f8232b9c1b

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

[skip ci]
This commit is contained in:
flarum-bot
2021-10-30 22:46:26 +00:00
parent f8232b9c1b
commit 823c337c1e
13 changed files with 218 additions and 140 deletions

View File

@@ -4,12 +4,12 @@
*/
export default class ScrollListener {
/**
* @param {Function} callback The callback to run when the scroll position
* @param {(top: number) => void} callback The callback to run when the scroll position
* changes.
* @public
*/
constructor(callback: Function);
callback: Function;
constructor(callback: (top: number) => void);
callback: (top: number) => void;
ticking: boolean;
/**
* On each animation frame, as long as the listener is active, run the

View File

@@ -1,11 +1,13 @@
import type { FlarumGenericRoute, RouteResolver } from '../Application';
import type Component from '../Component';
/**
* The `mapRoutes` utility converts a map of named application routes into a
* format that can be understood by Mithril, and wraps them in route resolvers
* to provide each route with the current route name.
*
* @see https://mithril.js.org/route.html#signature
* @param {Object} routes
* @param {String} [basePath]
* @return {Object}
*/
export default function mapRoutes(routes: Object, basePath?: string | undefined): Object;
export default function mapRoutes(routes: Record<string, FlarumGenericRoute>, basePath?: string): Record<string, RouteResolver<Record<string, unknown>, Component<{
[key: string]: unknown;
routeName: string;
}, undefined>, Record<string, unknown>>>;