FieldValueSet type does not match documentation

Đang mở
#138 3 bình luận 2 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
api

Hướng nghiên cứu

Read the FieldValueSet and Entity interface definitions in the TypeScript typings, then compare them with the linked Microsoft Graph example and resource description. Determine whether the index signature shown in the issue matches the intended API shape; done means the typings accurately represent FieldValueSet usage and the issue’s question is resolved.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

The interface for FieldValueSet is defined as follows:

export interface Entity {
    // Read-only.
    id?: string;
}
export interface FieldValueSet extends Entity {}

Meanwhile, in the example and resource description
its usage seems to imply that it actually should be defined as follows:

export interface FieldValueSet {
  [key: string]: any
}

If you look at the typed languages (C# or Java) in the example linked above (no typescript example, unfortunately), they use instances of FieldValueSet in a way that matches my proposed interface definition.

Should the interface provided in the TypeScript typings be changed?

Ngôn ngữ chính
PowerShell
Star
129
Fork
35
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoftgraph/msgraph-typescript-typings

Tất cả issue của microsoftgraph/msgraph-typescript-typings

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.