typescript-treasure
Advanced tools
Comparing version 0.0.2-dev.2023.8.23 to 0.0.2
import { If_EmptyStr, Str } from '../string/string'; | ||
import { If_Never, Len, TypeOf } from '../utils/utils'; | ||
import { If_Never, Len, Type, TypeOf } from '../utils/utils'; | ||
import { MulMap, PlusMantissaMap, PlusOverBoolMap, SubMantissaMap, SubShrinkBoolMap } from './calc-table'; | ||
@@ -42,4 +42,4 @@ import { DecreaserStrNum, If_Gt, If_PositiveStrGte, If_PositiveStrLt, IncreaserStrNum } from './number'; | ||
export type Rem<n1 extends string | number | bigint, n2 extends string | number | bigint, TargetType extends string | number | bigint = TypeOf<n1>> = RemPositionStrNum<Str<n1>, Str<n2>> extends `${infer R extends TargetType}` ? R : never; | ||
export type DivRem<n1 extends string | number | bigint, n2 extends string | number | bigint, TargetType extends string | number | bigint = TypeOf<n1>> = DivRemPositiveStrNum<Str<n1>, Str<n2>> extends [infer I extends TargetType, infer R extends TargetType] ? [int_num: I, rem_num: R] : never; | ||
export type DivRem<n1 extends string | number | bigint, n2 extends string | number | bigint, TargetType extends string | number | bigint = TypeOf<n1>> = DivRemPositiveStrNum<Str<n1>, Str<n2>> extends [infer I extends string | number | bigint, infer R extends string | number | bigint] ? [int_num: Type<I, TargetType>, rem_num: Type<R, TargetType>] : never; | ||
export type MulSum<ns extends Array<number | string>, result extends number = 1> = ns extends [infer first extends string | number, ...infer rest extends (string | number)[]] ? MulSum<rest, Mul<result, first>> : result; | ||
export {}; |
{ | ||
"name": "typescript-treasure", | ||
"version": "0.0.2-dev.2023.8.23", | ||
"version": "0.0.2", | ||
"description": "Elegant and pragmatic collection of typescript tools", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -11,3 +11,3 @@ # typescript-treasure | ||
## Document | ||
<a href="https://autumn-one.github.io/typescript-treasure/" target="_blank">中文文档</a> | ||
<a href="https://autumn-one.github.io/typescript-treasure-doc/" target="_blank">中文文档</a> | ||
@@ -14,0 +14,0 @@ ## ts type code specification |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
46334
1348
0