[TS] Use correct types for components

This commit is contained in:
Beef 2023-02-26 22:24:38 +00:00
parent 9fb99ced74
commit 69c2544b99

4
src/def.d.ts vendored
View file

@ -366,8 +366,8 @@ interface VendettaObject {
Search: _React.ComponentType;
Alert: _React.ComponentType;
// Vendetta
Summary: (props: SummaryProps) => JSX.Element;
ErrorBoundary: (props: ErrorBoundaryProps) => JSX.Element;
Summary: _React.ComponentType<SummaryProps>;
ErrorBoundary: _React.ComponentType<ErrorBoundaryProps>;
}
toasts: {
showToast: (content: string, asset: number) => void;