mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
Bundled output for commit ec730d2615
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
This commit is contained in:
16
js/dist-typings/common/helpers/listItems.d.ts
vendored
16
js/dist-typings/common/helpers/listItems.d.ts
vendored
@@ -1,6 +1,18 @@
|
||||
import type Mithril from 'mithril';
|
||||
import type * as Component from '../Component';
|
||||
export interface ModdedVnodeAttrs {
|
||||
itemClassName?: string;
|
||||
key?: string;
|
||||
}
|
||||
export declare type ModdedVnode<Attrs> = Mithril.Vnode<ModdedVnodeAttrs, Component.default<Attrs> | {}> & {
|
||||
itemName?: string;
|
||||
itemClassName?: string;
|
||||
};
|
||||
/**
|
||||
* The `listItems` helper wraps a collection of components in <li> tags,
|
||||
* The `listItems` helper wraps an array of components in the provided tag,
|
||||
* stripping out any unnecessary `Separator` components.
|
||||
*
|
||||
* By default, this tag is an `<li>` tag, but this is customisable through the
|
||||
* second function parameter, `customTag`.
|
||||
*/
|
||||
export default function listItems(items: Mithril.Vnode | Array<Mithril.Vnode>): Array<Mithril.Vnode>;
|
||||
export default function listItems<Attrs extends Record<string, unknown>>(items: ModdedVnode<Attrs> | ModdedVnode<Attrs>[], customTag?: string | Component.default<Attrs>, attributes?: Attrs): Mithril.Vnode[];
|
||||
|
Reference in New Issue
Block a user