New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ts-types-tools

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-types-tools

some type tools for typescript | TS中一些方便的类型工具

latest
Source
npmnpm
Version
0.0.9
Version published
Maintainers
1
Created
Source

ts-types-tools

TS中一些方便的类型工具

English

1. 安装

npm install ts-types-tools --save-dev

2. 使用

ts-types-tools中引入 直接在你的代码中使用

import type { IntRange } from 'ts-types-tools';

type Status = IntRange<0, 5>;  // 0 | 1 | 2 | 3 | 4
import type { NumberToString } from 'ts-types-tools';

type Status = NumberToString<'156' | '32'>;  // 156 | 32

3. 文档

核心功能

布尔

字符串

数字

数组

对象

函数

综合

Keywords

ts

FAQs

Package last updated on 01 Sep 2025

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