From 84ec839b041a0da2a7a950c47f003d5bebfe4685 Mon Sep 17 00:00:00 2001 From: Manti <67705577+mantikafasi@users.noreply.github.com> Date: Wed, 16 Nov 2022 02:40:46 +0300 Subject: Add ReviewDB Plugin (#187) Co-authored-by: Ven --- src/webpack/common.tsx | 2 +- src/webpack/webpack.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/webpack') diff --git a/src/webpack/common.tsx b/src/webpack/common.tsx index a8d67ca..9645172 100644 --- a/src/webpack/common.tsx +++ b/src/webpack/common.tsx @@ -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; diff --git a/src/webpack/webpack.ts b/src/webpack/webpack.ts index df32132..1231d9e 100644 --- a/src/webpack/webpack.ts +++ b/src/webpack/webpack.ts @@ -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 -- cgit