https://github.com/kawayilinlin/typescript-lodash
A typescript tools lib
https://github.com/kawayilinlin/typescript-lodash
js jslibrary lodash ts tslib types typescript utils
Last synced: about 1 year ago
JSON representation
A typescript tools lib
- Host: GitHub
- URL: https://github.com/kawayilinlin/typescript-lodash
- Owner: kawayiLinLin
- License: other
- Created: 2022-01-30T06:58:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T07:13:53.000Z (over 3 years ago)
- Last Synced: 2025-04-13T01:05:44.673Z (about 1 year ago)
- Topics: js, jslibrary, lodash, ts, tslib, types, typescript, utils
- Language: TypeScript
- Homepage: https://kawayiLinLin.github.io/typescript-lodash/
- Size: 1.31 MB
- Stars: 69
- Watchers: 1
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### 写 TS 像写 JS 一样容易
[](https://www.oscs1024.com/project/kawayiLinLin/typescript-lodash?ref=badge_small) [](https://www.npmjs.com/package/typescript-lodash) [](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html) [](https://www.npmjs.com/package/typescript-lodash)
Make writing TypeScript as easy as writing JavaScript
安装 Install
```bash
yarn add typescript-lodash # or:npm install --save typescript-lodash
```
使用 Usage
```ts
import { string } from "typescript-lodash"
// or use `import * as t from "typescript-lodash"` and then `t.string.Split<"">`
// or use `import { Split } from "typescript-lodash/lib/string"` and then `Split<"">`
type IString = "今天很高兴"
type TypeExample = string.Split
// 得到
type TypeResult = ["今", "天", "很", "高", "兴"]
```
查看文档 Documentation
[中文文档 Chinese Documentation](https://kawayilinlin.github.io/typescript-lodash/)