types: Install Types

typesR Documentation

Install Types

Description

Install TypeScript types from npm.

Usage

ts_get_types(..., versions = NULL)

ts_get_type(type, version = NULL)

Arguments

...

Types to install.

versions, version

Corresponding versions of types passed to ..., if NULL the latest version is installed.

type

Name of types @types/* to install.

Functions

  • ts_get_types: Flexible to retrieve multiple types.

  • ts_get_type: Convenience to easily retrieve a single type.

Examples

## Not run: ts_get_type("jquery")
## Not run: ts_get_types("@types/jquery")


packer documentation built on May 28, 2022, 5:06 p.m.