Skip to content

Releases: VKCOM/api-schema-typescript-generator

v0.5.0

27 Dec 17:54
Compare
Choose a tag to compare

Now methods parameters with array type have string type. The reason is, VK API accepts only a comma-separated string for array parameters. This may change in the future when VK API starts accepting a json body.

Before:

interface SomeMethodParams {
  user_ids: number[];
  filters: string[];
  fields: UsersFields[];
}

After:

interface SomeMethodParams {
  user_ids: string;
  filters: string;
  fields: string;
}