FieldValueSet type does not match documentation

Abierto
#138 3 comentarios 2 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
typescript
Área
api

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
PowerShell
Estrellas
129
Forks
35
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoftgraph/msgraph-typescript-typings

Todos los issues de microsoftgraph/msgraph-typescript-typings

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.