mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-15 09:33:03 -04:00
parent
b30508aef8
commit
84ec839b04
12 changed files with 553 additions and 14 deletions
|
@ -172,7 +172,7 @@ export type TextProps = React.PropsWithChildren & {
|
|||
variant: TextVariant;
|
||||
style?: React.CSSProperties;
|
||||
color?: string;
|
||||
tag?: "div" | "span" | "p" | "strong";
|
||||
tag?: "div" | "span" | "p" | "strong" | `h${1 | 2 | 3 | 4 | 5 | 6}`;
|
||||
selectable?: boolean;
|
||||
lineClamp?: number;
|
||||
id?: string;
|
||||
|
|
|
@ -139,11 +139,11 @@ export function findAll(filter: FilterFn, getDefault = true) {
|
|||
|
||||
/**
|
||||
* Same as {@link find} but in bulk
|
||||
* @param filterFns Arry of filters. Please note that this array will be modified in place, so if you still
|
||||
* @param filterFns Array of filters. Please note that this array will be modified in place, so if you still
|
||||
* need it afterwards, pass a copy.
|
||||
* @returns Array of results in the same order as the passed filters
|
||||
*/
|
||||
export function bulk(...filterFns: FilterFn[]) {
|
||||
export const findBulk = traceFunction("findBulk", function findBulk(...filterFns: FilterFn[]) {
|
||||
if (!Array.isArray(filterFns))
|
||||
throw new Error("Invalid filters. Expected function[] got " + typeof filterFns);
|
||||
|
||||
|
@ -216,7 +216,7 @@ export function bulk(...filterFns: FilterFn[]) {
|
|||
}
|
||||
|
||||
return results;
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Find the id of a module by its code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue