[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; Search: _React.ComponentType;
Alert: _React.ComponentType; Alert: _React.ComponentType;
// Vendetta // Vendetta
Summary: (props: SummaryProps) => JSX.Element; Summary: _React.ComponentType<SummaryProps>;
ErrorBoundary: (props: ErrorBoundaryProps) => JSX.Element; ErrorBoundary: _React.ComponentType<ErrorBoundaryProps>;
} }
toasts: { toasts: {
showToast: (content: string, asset: number) => void; showToast: (content: string, asset: number) => void;