VisActor / VisActor/VTable

[Feature] records/columns类型定义支持泛型

Open
#3,339 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
TypeScript
Stars
3.7k
Forks
486
Avg merge
1d 19h
Merged PRs (30d)
16

Description

What problem does this feature solve?

目前records类型是any[],希望支持泛型以对应后端字段。同样columns的field支持传入泛型约束

What does the proposed API look like?

export interface ListTableConstructorOptions extends BaseTableConstructorOptions {
records?: D[];
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating ListTableConstructorOptions and the existing records and columns type definitions. Trace how the columns field is typed and used, then assess the proposed generic API. Done means records accepts D[] and columns.field is constrained by D without breaking existing table usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.