Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vkontakte/api-schema-typescript

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vkontakte/api-schema-typescript

TypeScript typings for VK API

  • 1.5131.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
64
increased by60%
Maintainers
1
Weekly downloads
 
Created
Source

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) {

    }
  });
});

FAQs

Package last updated on 15 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc