diff --git a/src/types/index.ts b/src/types/index.ts index 9b747c6..1099012 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -4,8 +4,6 @@ export * from './arrays/non-empty-array/non-empty-array'; export * from './arrays/tuple-of/tuple-of'; export * from './extensions/arrayable/arrayable'; export * from './extensions/nullable/nullable'; -export * from './numbers/math-add/math-add'; -export * from './numbers/math-subtract/math-subtract'; export * from './objects/cookie/cookie'; export * from './objects/object-entries/object-entries'; export * from './objects/object-from-entries/object-from-entries'; diff --git a/src/types/numbers/math-add/math-add.ts b/src/types/numbers/math-add/math-add.ts deleted file mode 100644 index 60204d8..0000000 --- a/src/types/numbers/math-add/math-add.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { ArrayOf } from '../../arrays/array-of/array-of'; - -/** - * Sums two numbers. - */ -export type MathAdd = - [...ArrayOf<'exactly', A>, ...ArrayOf<'exactly', B>]['length']; diff --git a/src/types/numbers/math-subtract/math-subtract.ts b/src/types/numbers/math-subtract/math-subtract.ts deleted file mode 100644 index 5f2263f..0000000 --- a/src/types/numbers/math-subtract/math-subtract.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { ArrayOf } from '../../arrays/array-of/array-of'; - -/** - * Subtracts two numbers. - */ -export type MathSubtract = - ArrayOf<'exactly', A> extends [...(infer U), ...ArrayOf<'exactly', B>] ? U['length'] : never; diff --git a/src/types/type-fest.ts b/src/types/type-fest.ts index afa7559..3bf6678 100644 --- a/src/types/type-fest.ts +++ b/src/types/type-fest.ts @@ -9,6 +9,8 @@ export type { SetReadonly as PartialReadonly } from 'type-fest'; export type { SetRequired as PartialRequired } from 'type-fest'; export type { SetReturnType as PartialReturnType } from 'type-fest'; export type { Simplify as Explicit } from 'type-fest'; +export type { Subtract as MathSubtract } from 'type-fest'; +export type { Sum as MathAdd } from 'type-fest'; export type { TsConfigJson as TsConfig } from 'type-fest'; export type {