# @safelytyped/core-types

> Core safe types for Typescript

Latest version **0.5.1** (published 2025-01-13) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @safelytyped/core-types
pnpm add @safelytyped/core-types
yarn add @safelytyped/core-types
bun add @safelytyped/core-types
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.1 |
| Published | 2025-01-13 |
| First published | 2020-06-17 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | stuartherbert |
| Keywords | architypes, booleanish, contracts, data guarantees, data guards, defensive programming, entities, error reporting, hashmap, nominals, operators, protocols, refined types, safe types, type guards, type refinement, validation, value objects |

## Links

- npm: https://www.npmjs.com/package/@safelytyped/core-types
- Repository: https://github.com/SafelyTyped/ts-core-types
- Homepage: https://github.com/SafelyTyped/ts-core-types#readme
- Issues: https://github.com/SafelyTyped/ts-core-types/issues
- npm.io page: https://npm.io/package/@safelytyped/core-types

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 0.5.1 (latest) — 2025-01-13
- 0.5.0 — 2024-03-16
- 0.4.5 — 2024-03-02
- 0.4.4 — 2024-03-02
- 0.4.3 — 2024-03-02
- 0.4.2 — 2024-03-02
- 0.4.1 — 2024-03-02
- 0.4.0 — 2024-03-02
- 0.3.10 — 2022-05-09
- 0.3.9 — 2022-05-09
- 0.3.8 — 2022-05-02
- 0.3.7 — 2022-05-02
- 0.3.6 — 2022-05-01
- 0.3.5 — 2021-09-18
- 0.3.4 — 2021-09-05
- … 27 more at https://npm.io/package/@safelytyped/core-types/versions

## README

# Core Safe Types for TypeScript

## Introduction

This TypeScript library gives you a set of core safe types to build upon.

## Quick Start

```
# run this from your Terminal
npm install @safelytyped/core-types
```

```typescript
// add this import to your Typescript code
import { Value } from "@safelytyped/core-types"
```

__VS Code users:__ once you've added a single import anywhere in your project, you'll then be able to auto-import anything else that this library exports.

## Documentation

Here's a link to all the documentation about this project.

### Admin Paperwork

* [Our CHANGELOG](CHANGELOG.md)
* [Our software license](LICENSE.md)

### For Contributors

* [How to contribute](CONTRIBUTING.md)
* [Our Code of Conduct](CODE-OF-CONDUCT.md)
* [Our NPM scripts](./docs/v1/contributors/NPM-Scripts.md)

### Credits

* [Current Maintainers](MAINTAINERS.md)
* [All contributors to date](AUTHORS.md)

Follow us on [Twitter](https://twitter.com/SafelyTyped)!

---
_Source: https://npm.io/package/@safelytyped/core-types · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
