npm install --save-dev ts-essentials
👉 我们需要 typescript>=4.5
。如果你需要支持旧版本的 TS,请查看TypeScript 依赖表
👉 由于我们希望类型更加严格,我们要求在你的项目中启用 strictNullChecks
ts-essentials
是一组高质量、实用的 TypeScript 类型,可以让编写类型安全的代码变得更加容易。
Builtin
- 匹配原始类型、函数、日期、错误或正则表达式KeyofBase
- keyofStringsOnly
兼容的 PropertyKey
替代品Prettify<Type>
- 扁平化类型并使其在 IDE 悬停时更易读Primitive
- 匹配任何原始值StrictExclude<UnionType, ExcludedMembers>
- 通过从 UnionType
中排除所有可分配给 ExcludedMembers
的联合成员来构造类型。这是 Exclude
的更严格版本StrictExtract<Type, Union>
- 通过从 Type
中提取所有可分配给 Union
的联合成员来构造类型。这是 Extract
的更严格版本StrictOmit<Type, Keys>
- 通过从 Type
中选取所有属性然后移除 Keys
来构造类型。这是 Omit
的更严格版本Writable<Type>
- 构造一个类型,移除 Type
所有属性的 readonly
,意味着构造类型的属性可以被重新赋值AsyncOrSync<Type>
- 构造一个 Type
或 PromiseLike<Type>
的类型AsyncOrSyncType<Type>
- 解包 AsyncOrSync
类型Dictionary<Type, Keys?>
- 构造一个必需的对象类型,其属性键为 Keys
(默认为 string
),属性值为 Type
Merge<Object1, Object2>
- 通过选取 Object1
和 Object2
的所有属性来构造类型。当属性键相同时,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?>
- 构造一个类型,它可以分配给 Type1
或 Type2
,但不能同时分配给两者。从 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>
- 通过结合 DeepPartial
和 DeepWritable
构造一个类型,意味着来自 Type
类型的所有属性都被递归地设置为非 readonly
和可选的,即它们可以被重新赋值且不是必需的DeepNonNullable<Type>
- 通过递归地从 Type
类型中选择所有属性并从所有属性中排除 null
和 undefined
值来构造一个类型。要在一个层级上使属性非空,请使用 NonNullable<Type>
DeepNullable<Type>
- 通过递归地从 Type
类型中选择所有属性并为所有属性包含 null
值来构造一个类型DeepOmit<Type, Filter>
- 通过从 Type
类型中选择所有属性并移除在 Filter
类型中值为 never
或 true
的属性来构造一个类型。如果您希望 Filter
类型根据 Type
的结构进行验证,请使用 StrictDeepOmit<Type, Filter>
。DeepPartial<Type>
- 通过递归地从 Type
类型中选择所有属性并将它们设置为可选来构造一个类型,意味着它们不是必需的。要在一个层级上使属性可选,请使用 Partial<Type>
DeepPick<Type, Filter>
- 通过从 Type
类型中选择一组在 Filter
类型中属性值为 never
或 true
的属性来构造一个类型。如果您希望 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
类型中值为 never
或 true
的属性来构造一个类型。Filter
类型根据 Type
的结构进行验证。StrictDeepPick<Type, Filter>
- 通过从 Type
类型中选择一组在 Filter
类型中属性值为 never
或 true
的属性来构造一个类型。Filter
类型根据 Type
的结构进行验证。OptionalKeys<Type>
- 通过选择对象类型 Type
的所有可选属性构造一个联合类型PickKeys<Type, Value>
- 通过选择对象类型 Type
中所有可赋值给类型 Value
的属性构造一个联合类型ReadonlyKeys<Type>
- 通过选择对象类型 Type
的所有 readonly
属性构造一个联合类型,意味着它们的值不能被重新赋值RequiredKeys<Type>
- 通过选择对象类型 Type
的所有必需属性构造一个联合类型WritableKeys<Type>
- 通过选择对象类型 Type
的所有可写属性构造一个联合类型,意味着它们的值可以被重新赋值Exact<Type, Shape>
- 当类型 Type
和 Shape
完全相同时返回 Type
。否则返回 never
IsAny<Type>
- 当类型 Type
为 any
时返回 true
。否则返回 false
IsNever<Type>
- 当类型 Type
为 never
时返回 true
。否则返回 false
IsUnknown<Type>
- 当类型 Type
为 unknown
时返回 true
。否则返回 false
IsTuple<Type>
- 当类型 Type
为元组时返回 Type
。否则返回 never
NonEmptyObject<Object>
- 当 Object
至少有一个键时返回 Object
。否则返回 never
AnyArray<Type?>
- 匹配 Array
或 ReadonlyArray
(默认 Type
为 any
)ArrayOrSingle<Type>
- 匹配 Type
或 Type[]
ElementOf<Type>
- 构造一个等于类型 Type
的数组元素类型的类型Head<Type>
- 构造一个等于类型 Type
中第一个元素的类型NonEmptyArray<Type>
- 匹配至少有一个 Type
类型元素的数组ReadonlyArrayOrSingle
- 匹配 Type
或 readonly Type[]
Tail<Type>
- 构造一个等于类型 Type
中除第一个元素外的所有元素的类型Tuple<Type?>
- 匹配元组的类型约束,元素类型为 Type
(默认为 any
)CamelCase<Type>
- 将类型 Type
转换为驼峰式(例如 camelCase
)DeepCamelCaseProperties<Type>
- 通过递归地从类型 Type
中选择所有属性并将它们全部转换为驼峰式来构造一个类型AnyFunction<Args?, ReturnType?>
- 匹配参数类型为 Args
(默认为 any[]
)和返回类型为 ReturnType
(默认为 any
)的函数类型PredicateFunction
- 匹配类型守卫的类型约束,意味着第一个参数用于返回类型,且返回类型是类型谓词PredicateType<Type>
- 构造一个等于谓词函数 Type
中缩小类型的类型⚠️ 确保您将 ts-essentials
添加到 dependencies
中(npm install --save ts-essentials
)以避免运行时错误
new UnreachableCaseError(value)
- 匹配运行时类实例类型,帮助检查 value
的穷尽性。当 value
不是 never
时,它会显示 TypeScript 错误assert(condition, message?)
- 匹配运行时函数,帮助断言 condition
。当 condition
为假时,它会抛出一个错误,错误信息为 Assertion Error: ${message}
(默认消息为 "no additional info provided"
)createFactoryWithConstraint<Constraint>()(value)
- 匹配运行时函数,验证 value
的类型是否匹配 Constraint
,而不改变 value
的结果类型。satisfies
运算符的 polyfillisExact<Expected>()(actual)
- 匹配运行时函数,验证 actual
的类型是否等于 Expected
。否则显示 TypeScript 错误noop(..._args)
- 匹配对参数 _args
不执行任何操作的运行时函数当某个实用类型以不同名称被人所知时,请在此处添加以便更好地搜索。
ArrayValues
- ValueOf<Type>
Branded
- Opaque<Type, Token>
ConditionalKeys
- PickKeys<Type, Value>
Except
- StrictOmit<Type, Keys>
Get
- PathValue<Type, Path>
Mutable
- Writable<Type>
Nominal
- Opaque<Type, Token>
Set*
,例如 SetOptional
- Mark*
,例如 MarkReadonly<Type, Keys>
Unwrap
- Prettify<Type>
ValueOf
- DictionaryValues
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>
- 将字符串中的每个字符转换为大写版本ts-essentials | typescript / 依赖类型 |
---|---|
^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编程神器IDE
Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。
全能AI智能助手,随时解答生活与工作的多样问题
问小白,由元石科技研发的AI智能助手,快速准确地解答各种生活和工作问题,包括但不限于搜索、规划和社交互动,帮助用户在日常生活中提高效率,轻松管理个人事务。
实时语音翻译/同声传译工具
Transly是一个多场景的AI大语言模型驱动的同声传译、专业翻译助手,它拥有超精准的音频识别翻译能力,几乎零延迟的使用体验和支持多国语言可以让你带它走遍全球,无论你是留学生、商务人士、韩剧美剧爱好者,还是出国游玩、多国会议、跨国追星等等,都可以满足你所有需要同传的场景需求,线上线下通用,扫除语言障碍,让全世界的语言交流不再有国界。
一键生成PPT和Word,让学习生活更轻松
讯飞智文是一个利用 AI 技术的项目,能够帮助用户生成 PPT 以及各类文档。无论是商业领域的市场分析报告、年度目标制定,还是学生群体的职业生涯规划、实习避坑指南,亦或是活动策划、旅游攻略等内容,它都能提供支持,帮助用户精准表达,轻松呈现各种信息。
深度推理能力全新升级,全面对标OpenAI o1
科大讯飞的星火大模型,支持语言理解、知识问答和文本创作等多功能,适用于多种文件和业务场景,提升办公和日常生活的效率。讯飞星火是一个提供丰富智能服务的平台,涵盖科技资讯、图像创作、写作辅助、编程解答、科研文献解读等功能,能为不同需求的用户提供便捷高效的帮助,助力用户轻松获取信息、解决问题,满足多样化使用场景。
一种基于大语言模型的高效单流解耦语音令牌文本到语音合成模型
Spark-TTS 是一个基于 PyTorch 的开源文本到语音合成项目,由多个知名机构联合参与。该项目提供了高效的 LLM(大语言模型)驱动的语音合成方案,支持语音克隆和语音创建功能,可通过命令行界面(CLI)和 Web UI 两种方式使用。用户可以根据需求调整语音的性别、音高、速度等参数,生成高质量的语音。该项目适用于多种场景,如有声读物制作、智能语音助手开发等。
AI助力,做PPT更简单!
咔片是一款轻量化在线演示设计工具,借助 AI 技术,实现从内容生成到智能设计的一站式 PPT 制作服务。支持多种文档格式导入生成 PPT,提供海量模板、智能美化、素材替换等功能,适用于销售、教师、学生等各类人群,能高效制作出高品质 PPT,满足不同场景演示需求。
选题、配图、成文,一站式创作,让内容运营更高效
讯飞绘文,一个AI集成平台,支持写作、选题、配图、排版和发布。高效生成适用于各类媒体的定制内容,加速品牌传播,提升内容营销效果。
专业的AI公文写作平台,公文写作神器
AI 材料星,专业的 AI 公文写作辅 助平台,为体制内工作人员提供高效的公文写作解决方案。拥有海量公文文库、9 大核心 AI 功能,支持 30 + 文稿类型生成,助力快速完成领导讲话、工作总结、述职报告等材料,提升办公效率,是体制打工人的得力写作神器。
最新AI工具、AI资讯
独家AI资源、AI项目落地
微信扫一扫关注公众号