@hashicorp/platform-types
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

@hashicorp/platform-types

Common, shared types for use across all web properties.

Usage

Install the package as a devDependency:

npm install --save-dev @hashicorp/platform-types

Add a global.d.ts file at the root of your project:

/// <reference types="@hashicorp/platform-types" />

Ensure that global.d.ts is included in tsconfig.json

{
  // "compilerOptions":...
  "include": [ "global.d.ts", /* other types */ ],
  // "exclude": [...]
}

Utility Types

This package also ships a collection of utility types from utility-types. You can import a utility type with the following:

import { Optional } from '@hashicorp/platform-types/utilities'

Package Sidebar

Install

npm i @hashicorp/platform-types

Weekly Downloads

4,508

Version

0.4.0

License

MPL-2.0

Unpacked Size

4.31 kB

Total Files

5

Last publish

Collaborators

  • abhishek-hashicorp
  • dstaley
  • cameronperera
  • alexju
  • consul-ui-services
  • wenincode-hashicorp
  • hashicb
  • britt.lindgren
  • paulhcp
  • nandereck
  • tstormk
  • hashibot-hds
  • lackeyjb1
  • youriwims
  • jpogran
  • _natmegs
  • thrashr888
  • melsumner
  • mwickett
  • didoo
  • zchsh
  • hcitsec
  • gregone
  • meirish
  • enmod
  • kaxcode
  • anubhavmishra-hashicorp
  • hashibot-web
  • cstitt-hashi
  • kstraut
  • mocohen
  • dhaulagiri