ts-essentials

ts-essentials

TypeScript类型工具集简化类型安全编程

ts-essentials提供了丰富实用的TypeScript类型工具,包括基础类型、工具类型、深度包装类型和键类型等。这些工具可简化类型安全代码的编写,帮助开发者更高效地处理复杂类型操作。项目支持最新TypeScript版本,并通过启用strictNullChecks确保严格类型检查。

TypeScript类型工具实用类型ts-essentials类型安全Github开源项目
<p align="center"> <img src="https://yellow-cdn.veclightyear.com/835a84d5/4eaac91e-f5fc-432a-977f-9503e4ae30cf.png" width="120" alt="ts-essentials"> <h3 align="center">ts-essentials</h3> <p align="center">所有必备的 TypeScript 类型集于一处 🤙</p> <p align="center"> <a href="https://www.npmjs.com/package/ts-essentials" title="在 NPM 上查看此项目"> <img alt="版本" src="https://yellow-cdn.veclightyear.com/835a84d5/c161a006-26b0-4987-bb2c-d9a15150b27f.svg"> </a> <img alt="下载量" src="https://yellow-cdn.veclightyear.com/835a84d5/66e8080b-4719-43e6-96fe-d56be0f64f0c.svg"> <a href="https://github.com/ts-essentials/ts-essentials/actions?query=branch%3Amaster" title="查看 Github 构建状态"> <img alt="构建状态" src="https://yellow-cdn.veclightyear.com/835a84d5/a2704547-5d61-469e-8a1a-0c13e9e94856.svg"> </a> <a href="https://t.me/ts_essentials" title="在 Telegram 获取支持"> <img alt="Telegram" src="https://img.shields.io/badge/-telegram-red?color=white&logo=telegram"> </a> <a href="/package.json"><img alt="软件许可" src="https://yellow-cdn.veclightyear.com/835a84d5/00788c75-3287-486a-8f38-ba281deedfc6.svg?style=flat-square"></a> <a href="https://codechecks.io"><img src="https://yellow-cdn.veclightyear.com/835a84d5/aef6c381-70b3-4eee-9954-7da5057d83c3.svg?sanitize=true" alt="codechecks.io"></a> </p> </p>

安装

npm install --save-dev ts-essentials

👉 我们需要 typescript>=4.5。如果你需要支持旧版本的 TS,请查看TypeScript 依赖表

👉 由于我们希望类型更加严格,我们要求在你的项目中启用 strictNullChecks

API

ts-essentials 是一组高质量、实用的 TypeScript 类型,可以让编写类型安全的代码变得更加容易。

基础类型

实用类型

  • AsyncOrSync<Type> - 构造一个 TypePromiseLike<Type> 的类型
  • AsyncOrSyncType<Type> - 解包 AsyncOrSync 类型
  • Dictionary<Type, Keys?> - 构造一个必需的对象类型,其属性键为 Keys(默认为 string),属性值为 Type
  • Merge<Object1, Object2> - 通过选取 Object1Object2 的所有属性来构造类型。当属性键相同时,Object2 的属性值会覆盖 Object1 的属性值
  • MergeN<Tuple> - 通过递归地使用 Merge 类型合并元组 Tuple 中的对象来构造类型
  • Newable<ReturnType> - 构造一个类类型,其构造函数的返回类型为 ReturnType
  • NonNever<Type> - 通过选取 Type 中所有值不等于 never 的属性来构造类型
  • OmitProperties<Type, Value> - 通过选取 Type 中所有属性并移除值等于 Value 的那些属性来构造类型
  • Opaque<Type, Token> - 构造一个类型,它是 Type 的子集,带有指定的唯一标记 Token
  • PathValue<Type, Path> - 为类型 Type 和路径 Path 构造路径值
  • Paths<Type> - 通过选取类型 Type 的所有可能路径来构造联合类型
  • PickProperties<Type, Value> - 通过选取 Type 中所有值等于 Value 的属性来构造类型
  • SafeDictionary<Type, Keys?> - 构造一个可选的对象类型,其属性键为 Keys(默认为 string),属性值为 Type
  • UnionToIntersection<Union> - 从联合类型 Union 构造交叉类型
  • ValueOf<Type> - 为类型 Type 构造一个类型,对于原始类型等于原始值,对于数组等于数组元素,对于函数等于函数返回类型,对于对象等于对象属性值
  • XOR<Type1, Type2, Type3?, ..., Type50?> - 构造一个类型,它可以分配给 Type1Type2,但不能同时分配给两者。从 ts-essentials@10 开始,它支持最多 50 个泛型类型。

标记包装类型

  • MarkOptional<Type, Keys> - 通过选取 Type 中的所有属性来构造类型,其中 Keys 属性被设置为可选,意味着它们不是必需的
  • MarkReadonly<Type, Keys> - 通过选取 Type 中的所有属性来构造类型,其中 Keys 属性被设置为 readonly,意味着它们不能被重新赋值
  • MarkRequired<Type, Keys> - 通过选取 Type 中的所有属性来构造类型,其中 Keys 属性被设置为必需
  • MarkWritable<Type, Keys> - 通过选取 Type 中的所有属性来构造类型,其中 Keys 属性移除 readonly 修饰符,意味着它们可以被重新赋值

深度包装类型

  • Buildable<Type> - 通过结合 DeepPartialDeepWritable 构造一个类型,意味着来自 Type 类型的所有属性都被递归地设置为非 readonly 和可选的,即它们可以被重新赋值且不是必需的
  • DeepNonNullable<Type> - 通过递归地从 Type 类型中选择所有属性并从所有属性中排除 nullundefined 值来构造一个类型。要在一个层级上使属性非空,请使用 NonNullable<Type>
  • DeepNullable<Type> - 通过递归地从 Type 类型中选择所有属性并为所有属性包含 null 值来构造一个类型
  • DeepOmit<Type, Filter> - 通过从 Type 类型中选择所有属性并移除在 Filter 类型中值为 nevertrue 的属性来构造一个类型。如果您希望 Filter 类型根据 Type 的结构进行验证,请使用 StrictDeepOmit<Type, Filter>
  • DeepPartial<Type> - 通过递归地从 Type 类型中选择所有属性并将它们设置为可选来构造一个类型,意味着它们不是必需的。要在一个层级上使属性可选,请使用 Partial<Type>
  • DeepPick<Type, Filter> - 通过从 Type 类型中选择一组在 Filter 类型中属性值为 nevertrue 的属性来构造一个类型。如果您希望 Filter 类型根据 Type 的结构进行验证,请使用 StrictDeepPick<Type, Filter>
  • DeepReadonly<Type> - 通过递归地从 Type 类型中选择所有属性并设置 readonly 修饰符来构造一个类型,意味着它们不能被重新赋值。要在一个层级上使属性 readonly,请使用 Readonly<Type>
  • DeepRequired<Type> - 通过递归地从 Type 类型中选择所有属性并将其设置为必需来构造一个类型。要在一个层级上使属性必需,请使用 Required<Type>
  • DeepUndefinable<Type> - 通过递归地从 Type 类型中选择所有属性并为所有属性包含 undefined 值来构造一个类型
  • DeepWritable<Type> - 通过递归地从 Type 类型中选择所有属性并移除 readonly 修饰符来构造一个类型,意味着它们可以被重新赋值。要在一个层级上使属性可写,请使用 Writable<Type>
  • StrictDeepOmit<Type, Filter> - 通过从 Type 类型中选择所有属性并移除在 Filter 类型中值为 nevertrue 的属性来构造一个类型。Filter 类型根据 Type 的结构进行验证。
  • StrictDeepPick<Type, Filter> - 通过从 Type 类型中选择一组在 Filter 类型中属性值为 nevertrue 的属性来构造一个类型。Filter 类型根据 Type 的结构进行验证。

关键类型

  • OptionalKeys<Type> - 通过选择对象类型 Type 的所有可选属性构造一个联合类型
  • PickKeys<Type, Value> - 通过选择对象类型 Type 中所有可赋值给类型 Value 的属性构造一个联合类型
  • ReadonlyKeys<Type> - 通过选择对象类型 Type 的所有 readonly 属性构造一个联合类型,意味着它们的值不能被重新赋值
  • RequiredKeys<Type> - 通过选择对象类型 Type 的所有必需属性构造一个联合类型
  • WritableKeys<Type> - 通过选择对象类型 Type 的所有可写属性构造一个联合类型,意味着它们的值可以被重新赋值

类型检查器

  • Exact<Type, Shape> - 当类型 TypeShape 完全相同时返回 Type。否则返回 never
  • IsAny<Type> - 当类型 Typeany 时返回 true。否则返回 false
  • IsNever<Type> - 当类型 Typenever 时返回 true。否则返回 false
  • IsUnknown<Type> - 当类型 Typeunknown 时返回 true。否则返回 false
  • IsTuple<Type> - 当类型 Type 为元组时返回 Type。否则返回 never
  • NonEmptyObject<Object> - 当 Object 至少有一个键时返回 Object。否则返回 never

数组和元组

更改大小写

函数类型

实用函数

⚠️ 确保您将 ts-essentials 添加到 dependencies 中(npm install --save ts-essentials)以避免运行时错误

搜索

当某个实用类型以不同名称被人所知时,请在此处添加以便更好地搜索。

内置类型

TypeScript 提供了几种实用类型来便于常见的类型转换。这些实用工具在全局范围内可用。

  • Awaited<Type> - 这种类型旨在模拟 async 函数中的 await 操作,或 Promise 上的 .then() 方法 - 特别是它们递归解包 Promise 的方式
  • Capitalize<StringType> - 将字符串中的第一个字符转换为大写形式
  • ConstructParameters<Type> - 从构造函数类型 Type 的类型构造一个元组或数组类型
  • Exclude<UnionType, ExcludedMembers> - 通过从 UnionType 中排除所有可赋值给 ExcludedMembers 的联合成员来构造一个类型
  • Extract<Type, Union> - 通过从 Type 中提取所有可赋值给 Union 的联合成员来构造一个类型
  • InstanceType<Type> - 构造一个由 Type 中构造函数的实例类型组成的类型
  • Lowercase<StringType> - 将字符串中的每个字符转换为小写形式
  • NonNullable<Type> - 通过从 Type 中排除 null 和 undefined 来构造一个类型
  • Omit<Type, Keys> - 通过从 Type 中选取所有属性然后移除 Keys 来构造一个类型
  • Parameters<Type> - 从函数类型 Type 的参数中使用的类型构造一个元组类型
  • Partial<Type> - 构造一个类型,将 Type 的所有属性设置为可选
  • Pick<Type, Keys> - 通过从 Type 中选取属性集 Keys 来构造一个类型
  • Readonly<Type> - 构造一个类型,将 Type 的所有属性设置为 readonly,意味着构造类型的属性不能被重新赋值
  • Record<Keys, Type> - 构造一个对象类型,其属性键为 Keys,属性值为 Type
  • Required<Type> - 构造一个类型,将 Type 的所有属性设置为必需
  • ReturnType<Type> - 构造一个由函数类型 Type 参数的返回类型组成的类型
  • Uncapitalize<StringType> - 将字符串中的第一个字符转换为小写形式
  • Uppercase<StringType> - 将字符串中的每个字符转换为大写版本

TypeScript 依赖表

ts-essentialstypescript / 依赖类型
^10.0.0^4.5.0 / 可选对等
^9.4.0^4.1.0 / 可选对等
^8.0.0^4.1.0 / 对等
^5.0.0^3.7.0 / 对等
^3.0.1^3.5.0 / 对等
^1.0.1^3.2.2 / 开发
^1.0.0^3.0.3 / 开发

贡献者

感谢这些优秀的人(表情符号键):

<table> <tr> <td align="center"><a href="https://twitter.com/krzkaczor"><img src="https://avatars2.githubusercontent.com/u/1814312?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Chris Kaczor</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=krzkaczor" title="代码">💻</a> <a href="#business-krzkaczor" title="业务开发">💼</a> <a href="#example-krzkaczor" title="示例">💡</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=krzkaczor" title="文档">📖</a></td> <td align="center"><a href="https://scholar.google.com/citations?user=3xZtvpAAAAAJ"><img src="https://avatars3.githubusercontent.com/u/9780746?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Xiao Liang</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=yxliang01" title="代码">💻</a> <a href="#ideas-yxliang01" title="想法、规划与反馈">🤔</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=yxliang01" title="文档">📖</a></td> <td align="center"><a href="https://github.com/Andarist"><img src="https://avatars2.githubusercontent.com/u/9800850?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mateusz Burzyński</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=Andarist" title="代码">💻</a> <a href="#ideas-Andarist" title="想法、规划与反馈">🤔</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=Andarist" title="文档">📖</a></td> <td align="center"><a href="https://github.com/macbem"><img src="https://avatars1.githubusercontent.com/u/12464061?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Maciej Bembenista</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=macbem" title="代码">💻</a> <a href="#ideas-macbem" title="想法、规划与反馈">🤔</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=macbem" title="文档">📖</a></td> <td align="center"><a href="https://github.com/MichaelTontchev"><img src="https://avatars0.githubusercontent.com/u/12261336?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Michael Tontchev</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=MichaelTontchev" title="代码">💻</a> <a href="#ideas-MichaelTontchev" title="想法、规划与反馈">🤔</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=MichaelTontchev" title="文档">📖</a></td> <td align="center"><a href="http://ThomasdH.blogspot.com"><img src="https://avatars0.githubusercontent.com/u/3889750?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Thomas den Hollander</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=ThomasdenH" title="代码">💻</a> <a href="#ideas-ThomasdenH" title="想法、规划与反馈">🤔</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=ThomasdenH" title="文档">📖</a></td> <td align="center"><a href="https://twitter.com/esamatti"><img src="https://avatars3.githubusercontent.com/u/225712?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Esa-Matti Suuronen</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=epeli" title="代码">💻</a> <a href="#ideas-epeli" title="想法、规划与反馈">🤔</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=epeli" title="文档">📖</a></td> </tr> <tr> <td align="center"><a href="https://github.com/IlyaSemenov"><img src="https://avatars1.githubusercontent.com/u/128121?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ilya Semenov</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=IlyaSemenov" title="代码">💻</a> <a href="#ideas-IlyaSemenov" title="想法、规划与反馈">🤔</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=IlyaSemenov" title="文档">📖</a></td> <td align="center"><a href="https://codechecks.io"><img src="https://avatars2.githubusercontent.com/u/46399828?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Code Checks</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/pulls?q=is%3Apr+reviewed-by%3Acodechecks" title="审查过的拉取请求">👀</a></td> <td align="center"><a href="http://www.nomiclabs.io"><img src="https://avatars1.githubusercontent.com/u/176499?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Patricio Palladino</b></sub></a><br /><a href="#ideas-alcuadrado" title="想法、规划与反馈">🤔</a></td> <td align="center"><a href="http://twitter.com/quezak2"><img src="https://avatars0.githubusercontent.com/u/666206?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Artur Kozak</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=quezak" title="代码">💻</a> <a href="#ideas-quezak" title="想法、规划与反馈">🤔</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=quezak" title="文档">📖</a> <a href="https://github.com/ts-essentials/ts-essentials/pulls?q=is%3Apr+reviewed-by%3Aquezak" title="审查过的拉取请求">👀</a></td> <td align="center"><a href="https://github.com/lucifer1004"><img src="https://avatars2.githubusercontent.com/u/13583761?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Zihua Wu</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=lucifer1004" title="代码">💻</a> <a href="#ideas-lucifer1004" title="想法、规划与反馈">🤔</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=lucifer1004" title="文档">📖</a></td> <td align="center"><a href="http://kevinpeno.com"><img src="https://avatars1.githubusercontent.com/u/343808?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kevin Peno</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=kevinpeno" title="代码">💻</a></td> <td align="center"><a href="https://github.com/DomParfitt"><img src="https://avatars2.githubusercontent.com/u/11363907?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dom Parfitt</b></sub></a><br /><a href="#ideas-DomParfitt" title="想法、规划与反馈">🤔</a></td> </tr> <tr> <td align="center"><a href="https://github.com/EduardoRFS"><img src="https://avatars0.githubusercontent.com/u/3393115?v=4?s=100" width="100px;" alt=""/><br /><sub><b>EduardoRFS</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=EduardoRFS" title="代码">💻</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=EduardoRFS" title="文档">📖</a></td> <td align="center"><a href="https://andydvorak.net/"><img src="https://avatars1.githubusercontent.com/u/409245?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Andrew C. Dvorak</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=acdvorak" title="文档">📖</a></td> <td align="center"><a href="https://github.com/a1russell"><img src="https://avatars0.githubusercontent.com/u/241628?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Adam Russell</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=a1russell" title="代码">💻</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=a1russell" title="文档">📖</a></td> <td align="center"><a href="https://github.com/sz-piotr"><img src="https://avatars2.githubusercontent.com/u/17070569?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Piotr Szlachciak</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=sz-piotr" title="代码">💻</a> <a href="#ideas-sz-piotr" title="想法、计划和反馈">🤔</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=sz-piotr" title="文档">📖</a></td> <td align="center"><a href="https://github.com/mikhailswift"><img src="https://avatars3.githubusercontent.com/u/3218582?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mikhail Swift</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=mikhailswift" title="代码">💻</a></td> <td align="center"><a href="https://github.com/DevilZh"><img src="https://avatars1.githubusercontent.com/u/10295215?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ryan Zhang</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=DevilZh" title="代码">💻</a> <a href="#ideas-DevilZh" title="想法、计划和反馈">🤔</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=DevilZh" title="文档">📖</a></td> <td align="center"><a href="https://www.linkedin.com/in/francesco-borzi/"><img src="https://avatars1.githubusercontent.com/u/75517?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Francesco Borzì</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=FrancescoBorzi" title="文档">📖</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=FrancescoBorzi" title="代码">💻</a></td> </tr> <tr> <td align="center"><a href="https://github.com/leaumar"><img src="https://avatars2.githubusercontent.com/u/3950300?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Marnick L'Eau</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=leaumar" title="代码">💻</a> <a href="#ideas-leaumar" title="想法、计划和反馈">🤔</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=leaumar" title="文档">📖</a></td> <td align="center"><a href="https://github.com/kubk"><img src="https://avatars1.githubusercontent.com/u/22447849?v=4?s=100" width="100px;" alt=""/><br /><sub><b>kubk</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=kubk" title="代码">💻</a></td> <td align="center"><a href="https://github.com/bbarry"><img src="https://avatars0.githubusercontent.com/u/84951?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Bill Barry</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=bbarry" title="代码">💻</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=bbarry" title="文档">📖</a></td> <td align="center"><a href="https://github.com/akwodkiewicz"><img src="https://avatars2.githubusercontent.com/u/22861194?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Andrzej Wódkiewicz</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=akwodkiewicz" title="代码">💻</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=akwodkiewicz" title="文档">📖</a> <a href="#ideas-akwodkiewicz" title="想法、计划和反馈">🤔</a></td> <td align="center"><a href="http://chjdev.com"><img src="https://avatars2.githubusercontent.com/u/973941?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Christian</b></sub></a><br /><a href="#ideas-chjdev" title="想法、计划和反馈">🤔</a></td> <td align="center"><a href="https://github.com/mattleff"><img src="https://avatars0.githubusercontent.com/u/120155?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Matthew Leffler</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=mattleff" title="文档">📖</a></td> <td align="center"><a href="https://github.com/studds"><img src="https://avatars2.githubusercontent.com/u/3046407?v=4?s=100" width="100px;" alt=""/><br /><sub><b>studds</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=studds" title="代码">💻</a></td> </tr> <tr> <td align="center"><a href="https://github.com/Beraliv"><img src="https://avatars.githubusercontent.com/u/2991847?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Alex Berezin</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=Beraliv" title="代码">💻</a> <a href="https://github.com/ts-essentials/ts-essentials/commits?author=Beraliv" title="文档">📖</a></td> <td align="center"><a href="https://github.com/vitonsky"><img src="https://avatars.githubusercontent.com/u/86191922?v=4?s=100" width="100px;" alt=""/><br /><sub><b>vitonsky</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=vitonsky" title="文档">📖</a></td> <td align="center"><a href="https://github.com/itayronen"><img src="https://avatars.githubusercontent.com/u/21139000?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Itay Ronen</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=itayronen" title="代码">💻</a></td> <td align="center"><a href="https://github.com/cyberbiont"><img src="https://avatars.githubusercontent.com/u/59398323?v=4?s=100" width="100px;" alt=""/><br /><sub><b>亚罗斯拉夫·拉林</b></sub></a><br /><a href="https://github.com/ts-essentials/ts-essentials/commits?author=cyberbiont" title="代码">💻</a></td> </tr> </table> <!-- markdownlint-restore --> <!-- prettier-ignore-end --> <!-- ALL-CONTRIBUTORS-LIST:END -->

本项目遵循all-contributors规范。 欢迎任何形式的贡献!阅读更多

编辑推荐精选

蛙蛙写作

蛙蛙写作

AI小说写作助手,一站式润色、改写、扩写

蛙蛙写作—国内先进的AI写作平台,涵盖小说、学术、社交媒体等多场景。提供续写、改写、润色等功能,助力创作者高效优化写作流程。界面简洁,功能全面,适合各类写作者提升内容品质和工作效率。

AI辅助写作AI工具蛙蛙写作AI写作工具学术助手办公助手营销助手AI助手
Trae

Trae

字节跳动发布的AI编程神器IDE

Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。

AI工具TraeAI IDE协作生产力转型热门
问小白

问小白

全能AI智能助手,随时解答生活与工作的多样问题

问小白,由元石科技研发的AI智能助手,快速准确地解答各种生活和工作问题,包括但不限于搜索、规划和社交互动,帮助用户在日常生活中提高效率,轻松管理个人事务。

热门AI助手AI对话AI工具聊天机器人
Transly

Transly

实时语音翻译/同声传译工具

Transly是一个多场景的AI大语言模型驱动的同声传译、专业翻译助手,它拥有超精准的音频识别翻译能力,几乎零延迟的使用体验和支持多国语言可以让你带它走遍全球,无论你是留学生、商务人士、韩剧美剧爱好者,还是出国游玩、多国会议、跨国追星等等,都可以满足你所有需要同传的场景需求,线上线下通用,扫除语言障碍,让全世界的语言交流不再有国界。

讯飞智文

讯飞智文

一键生成PPT和Word,让学习生活更轻松

讯飞智文是一个利用 AI 技术的项目,能够帮助用户生成 PPT 以及各类文档。无论是商业领域的市场分析报告、年度目标制定,还是学生群体的职业生涯规划、实习避坑指南,亦或是活动策划、旅游攻略等内容,它都能提供支持,帮助用户精准表达,轻松呈现各种信息。

AI办公办公工具AI工具讯飞智文AI在线生成PPTAI撰写助手多语种文档生成AI自动配图热门
讯飞星火

讯飞星火

深度推理能力全新升级,全面对标OpenAI o1

科大讯飞的星火大模型,支持语言理解、知识问答和文本创作等多功能,适用于多种文件和业务场景,提升办公和日常生活的效率。讯飞星火是一个提供丰富智能服务的平台,涵盖科技资讯、图像创作、写作辅助、编程解答、科研文献解读等功能,能为不同需求的用户提供便捷高效的帮助,助力用户轻松获取信息、解决问题,满足多样化使用场景。

热门AI开发模型训练AI工具讯飞星火大模型智能问答内容创作多语种支持智慧生活
Spark-TTS

Spark-TTS

一种基于大语言模型的高效单流解耦语音令牌文本到语音合成模型

Spark-TTS 是一个基于 PyTorch 的开源文本到语音合成项目,由多个知名机构联合参与。该项目提供了高效的 LLM(大语言模型)驱动的语音合成方案,支持语音克隆和语音创建功能,可通过命令行界面(CLI)和 Web UI 两种方式使用。用户可以根据需求调整语音的性别、音高、速度等参数,生成高质量的语音。该项目适用于多种场景,如有声读物制作、智能语音助手开发等。

咔片PPT

咔片PPT

AI助力,做PPT更简单!

咔片是一款轻量化在线演示设计工具,借助 AI 技术,实现从内容生成到智能设计的一站式 PPT 制作服务。支持多种文档格式导入生成 PPT,提供海量模板、智能美化、素材替换等功能,适用于销售、教师、学生等各类人群,能高效制作出高品质 PPT,满足不同场景演示需求。

讯飞绘文

讯飞绘文

选题、配图、成文,一站式创作,让内容运营更高效

讯飞绘文,一个AI集成平台,支持写作、选题、配图、排版和发布。高效生成适用于各类媒体的定制内容,加速品牌传播,提升内容营销效果。

热门AI辅助写作AI工具讯飞绘文内容运营AI创作个性化文章多平台分发AI助手
材料星

材料星

专业的AI公文写作平台,公文写作神器

AI 材料星,专业的 AI 公文写作辅助平台,为体制内工作人员提供高效的公文写作解决方案。拥有海量公文文库、9 大核心 AI 功能,支持 30 + 文稿类型生成,助力快速完成领导讲话、工作总结、述职报告等材料,提升办公效率,是体制打工人的得力写作神器。

下拉加载更多