1.5131.2 • Published 3 years ago

@vkontakte/api-schema-typescript v1.5131.2

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

VK API Schema Typescript

This repository contains prebuilt TypeScript typings for VK API Schema. The generation is performed with VKCOM/api-schema-typescript-generator.

Current API version – 5.131

The package versions will follow API versions. It means that for 5.131 API version the package version will be *.5131.*.

Install

yarn add @vkontakte/api-schema-typescript
npm i --save @vkontakte/api-schema-typescript

Usage

You can import params, responses, and objects from the library.

import {
  MessagesGetByIdParams,           // Method params
  MessagesGetByIdExtendedResponse, // Response interface
  MessagesMessage,                 // Any object
} from '@vkontakte/api-schema-typescript';

const params: MessagesGetByIdParams = {
  message_ids: [1, 2, 3].join(','),
  extended: 1,
};

apiRequest('messages.getById', params).then((response: MessagesGetByIdExtendedResponse) => {
  response.items.forEach((message) => {
    if (message.out) {

    }
  });
});
1.5131.2

3 years ago

1.5131.1

3 years ago

1.5131.0

3 years ago

0.5131.1

3 years ago

0.5131.0

3 years ago

0.5130.0

3 years ago

0.5126.1

3 years ago

0.5126.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago