Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typescript-treasure

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-treasure - npm Package Compare versions

Comparing version 0.0.2-dev.2023.8.23 to 0.0.2

4

dist/number/calc.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc