keajs / kea-typegen

6 stars 5 forks source link

Fix actions with payloads with over 16 properties #24

Closed mariusandra closed 3 years ago

mariusandra commented 3 years ago

Fixes "10 more" in generated types like:

export interface dashboardInsightLogicType extends Logic {
    actionCreators: {
        updateDashboardInsight: (id: number, payload: Partial<DashboardItemType>) => ({
            type: "update dashboard insight (scenes.dashboard-insight.dashboardInsightLogic)";
            payload: {
                id: number;
                name?: string | undefined;
                description?: string | undefined;
                filters?: Record<string, any> | undefined;
                filters_hash?: string | undefined;
                order?: number | undefined;
                ... 10 more ...;
                result?: any;
            };
        });
   ...