We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@hustcc Please suggest the solution to work with tsx file.
The text was updated successfully, but these errors were encountered:
Can you help me to add types def.
Sorry, something went wrong.
` declare module 'gantt-for-react' { import { Component, ReactNode } from 'react';
export interface Task { id: number; name: string; start: Date; end: Date; progress?: number; dependencies?: number[]; custom_class?: string; } export type ViewMode = 'Quarter Day' | 'Half Day' | 'Day' | 'Week' | 'Month'; export type PopupHtmlFunction = (task: Task) => ReactNode; export interface GanttProps { tasks: Task[]; viewMode: ViewMode; customPopupHtml?: string | PopupHtmlFunction; onClick?: (task: Task) => void; onDateChange?: (task: Task, start: Date, end: Date) => void; onProgressChange?: (task: Task, progress: number) => void; onViewChange?: (mode: ViewMode) => void; } export class Gantt extends Component<GanttProps> {}
} `
Something like this
add gantt-for-react.d.ts and it should be done
No branches or pull requests
@hustcc Please suggest the solution to work with tsx file.
The text was updated successfully, but these errors were encountered: