Strange zoomout type #56

Open
opened 8 months ago by glitch4347 · 0 comments
Owner

Client forcer to put any type for zoomout

This type because

export type LineOptions = Options & {
    events?: {
        zoomOut?: (centers: {
            x: number;
            y: number;
        }, range: AxisRange[]) => void;
    };
};

which uncovers to strange type


((centers: {
            x: number;
            y: number;
        }) => void)

&

( (centers: {
            x: number;
            y: number;
        }, range: AxisRange[]) => void;
)

... I think I've made a mistake in software design when introduced this type

Client forcer to put `any` type for zoomout This type because ``` export type LineOptions = Options & { events?: { zoomOut?: (centers: { x: number; y: number; }, range: AxisRange[]) => void; }; }; ``` which uncovers to strange type ``` ((centers: { x: number; y: number; }) => void) & ( (centers: { x: number; y: number; }, range: AxisRange[]) => void; ) ``` ... I think I've made a mistake in software design when introduced this type
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.