Learn R Programming

packer (version 0.1.3)

types: 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

Run this code
# NOT RUN {
ts_get_type("jquery")
# }
# NOT RUN {
ts_get_types("@types/jquery")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab