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

@vkontakte/api-schema-typescript-generator

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vkontakte/api-schema-typescript-generator

VK API TypeScript generator

  • 0.16.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

VK API Schema Typescript Generator

npm version

This package generates TypeScript typings based on the VK API JSON schema.

Usage

Via npx:
npx @vkontakte/api-schema-typescript-generator --schemaDir ./schema --outDir ./types/api --methods '*'
Via installed dependency:
yarn add @vkontakte/api-schema-typescript-generator

vk-api-schema-typescript-generator --schemaDir ./schema --outDir ./types/api --methods 'messages.*'

Options

--help

Shows help.

--schemaDir

The relative path to directory with methods.json, objects.json and responses.json files.

--outDir

The directory where the files will be generated.

If you skip this param, script will work in linter mode without emitting files to file system.

Please note that this folder will be cleared after starting the generation.

--methods

List of methods to generate responses and all needed objects.

Examples:

  • '*' – to generate all responses and objects.
  • 'messages.*, users.get, groups.isMember' - to generate all methods from messages section, users.get and groups.isMember.

Keywords

FAQs

Package last updated on 07 Aug 2023

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