[Feature] records/columns类型定义支持泛型
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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