New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@verticalstrategy/datatypes

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@verticalstrategy/datatypes

Useful general purpose datatypes with TypeScript support

1.0.2
latest
Source
npm
Version published
Weekly downloads
2
100%
Maintainers
3
Weekly downloads
 
Created
Source

Datatypes for TypeScript

pipeline status

Additional datatypes for JavaScript.

Introduction

This module provides useful types that are a common in of other programming languages, but are not included in core JavaScript/TypeScript.

Installation

 yarn add @verticalstrategy/datatypes

Types

TypeDescriptionDocumentation
OptionRepresent an optional valueIntroduction / API
ResultRepresent a result or an errorIntroduction / API

Interfaces

InterfaceDescription
ToPlainClasses that can export to a JSON-able JS type
FromPlainClasses that can import from a JSON-able JS type
LazyRepresents a lazy-loadable type

Implementation in other languages

You may be familiar with some of the content of this module. Here are some analogs in other Programming Languages:

LanguageOther NameEquivalent toReference
SwiftOptionalOptionSwift docs
RustOptionOptionRust docs
RustResultResultRust docs
C#NullableOptionC# docs
F#OptionOptionF# docs
F#ResultResultF# docs

Contributing

Contributions are always welcome in form of pull requests. Discussion or bug reports are created by opening new issues.

FAQs

Package last updated on 15 Jan 2019

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