[TS] Use correct types for components
This commit is contained in:
parent
9fb99ced74
commit
69c2544b99
1 changed files with 2 additions and 2 deletions
4
src/def.d.ts
vendored
4
src/def.d.ts
vendored
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue