[TS migration] Reafactor tooltips.js to use typescript #4032
Annotations
12 errors and 8 warnings
typecheck:
packages/desktop-client/src/components/LoggedInUser.tsx#L103
Type '{ children: Element; position: "bottom-right"; style: { padding: number; }; onClose: () => void; }' is missing the following properties from type 'Readonly<TooltipProps>': forceLayout, forceTop, ignoreBoundary, targetRect, and 2 more.
|
typecheck:
packages/desktop-client/src/components/NotesButton.tsx#L108
Type 'string' is not assignable to type 'TooltipPosition'.
|
typecheck:
packages/desktop-client/src/components/NotesButton.tsx#L187
Type '{ children: Element; onClick: (e: Event) => void; type: "bare"; "aria-label": string; className: string; style: { color: string; display: "flex !important"; accentColor?: AccentColor; ... 804 more ...; vectorEffect?: VectorEffect; }; }' is not assignable to type 'Omit<ButtonProps, "ref">'.
|
typecheck:
packages/desktop-client/src/components/Titlebar.tsx#L320
Type '{ children: Element[]; position: "bottom-left"; onClose: () => void; style: { padding: number; maxWidth: number; }; }' is missing the following properties from type 'Readonly<TooltipProps>': forceLayout, forceTop, ignoreBoundary, targetRect, and 2 more.
|
typecheck:
packages/desktop-client/src/components/budget/BudgetTotals.tsx#L70
Type '{ children: Element; position: "bottom-right"; width: number; style: { padding: number; }; onClose: () => void; }' is missing the following properties from type 'Readonly<TooltipProps>': forceLayout, forceTop, ignoreBoundary, targetRect, offset
|
typecheck:
packages/desktop-client/src/components/budget/SidebarCategory.tsx#L83
Type '{ children: Element; position: "bottom-left"; width: number; style: { padding: number; }; onClose: () => void; }' is missing the following properties from type 'Readonly<TooltipProps>': forceLayout, forceTop, ignoreBoundary, targetRect, offset
|
typecheck:
packages/desktop-client/src/components/budget/SidebarGroup.tsx#L108
Type '{ children: Element; position: "bottom-left"; width: number; style: { padding: number; }; onClose: () => void; }' is missing the following properties from type 'Readonly<TooltipProps>': forceLayout, forceTop, ignoreBoundary, targetRect, offset
|
typecheck:
packages/desktop-client/src/components/budget/report/BalanceTooltip.tsx#L33
Type '{ children: Element; position: "bottom-right"; width: number; style: { padding: number; }; onClose: () => void; }' is missing the following properties from type 'Readonly<TooltipProps>': forceLayout, forceTop, ignoreBoundary, targetRect, offset
|
typecheck:
packages/desktop-client/src/components/budget/report/ReportComponents.tsx#L215
Type '{ children: Element; position: "bottom-left"; width: number; style: { padding: number; }; onClose: () => void; }' is missing the following properties from type 'Readonly<TooltipProps>': forceLayout, forceTop, ignoreBoundary, targetRect, offset
|
typecheck:
packages/desktop-client/src/components/budget/report/ReportComponents.tsx#L324
Type '{ children: Element; onClick?: (e: Event) => void; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>'.
|
lint
Process completed with exit code 1.
|
test
Process completed with exit code 1.
|
lint:
packages/desktop-client/src/components/tooltips.tsx#L1
Imports "RefObject" and "ReactNode" are only used as types
|
lint:
packages/desktop-client/src/components/tooltips.tsx#L9
There should be at least one empty line between import groups
|
lint:
packages/desktop-client/src/components/tooltips.tsx#L10
There should be at least one empty line between import groups
|
lint:
packages/desktop-client/src/components/tooltips.tsx#L11
Import "CSSProperties" is only used as types
|
lint:
packages/desktop-client/src/components/tooltips.tsx#L13
Unexpected any. Specify a different type
|
lint:
packages/desktop-client/src/components/tooltips.tsx#L52
Unexpected any. Specify a different type
|
lint:
packages/desktop-client/src/components/tooltips.tsx#L61
Using default React import is discouraged, please use named exports directly instead
|
lint:
packages/desktop-client/src/components/tooltips.tsx#L177
Unexpected any. Specify a different type
|