@duplojs/lang 0.0.1-beta.4 → 0.0.1-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/array/index.cjs +0 -3
  2. package/dist/array/index.d.ts +0 -1
  3. package/dist/array/index.mjs +1 -3
  4. package/dist/common/constraint/cast/number.d.ts +15 -0
  5. package/dist/common/constraint/cast/string.d.ts +13 -0
  6. package/dist/common/constraint/index.d.ts +1 -0
  7. package/dist/common/constraint/infer/array.d.ts +7 -0
  8. package/dist/{array/infer.cjs → common/constraint/infer/index.cjs} +1 -1
  9. package/dist/common/constraint/infer/index.d.ts +26 -0
  10. package/dist/{string/infer.mjs → common/constraint/infer/index.mjs} +1 -1
  11. package/dist/common/constraint/infer/number.d.ts +11 -0
  12. package/dist/common/constraint/infer/string.d.ts +11 -0
  13. package/dist/common/index.cjs +3 -0
  14. package/dist/common/index.mjs +3 -1
  15. package/dist/dataStructure/constraint/defaults/absolutePath.cjs +13 -0
  16. package/dist/dataStructure/constraint/defaults/absolutePath.d.ts +10 -0
  17. package/dist/dataStructure/constraint/defaults/absolutePath.mjs +12 -0
  18. package/dist/dataStructure/constraint/defaults/index.d.ts +3 -0
  19. package/dist/dataStructure/constraint/defaults/path.cjs +13 -0
  20. package/dist/dataStructure/constraint/defaults/path.d.ts +10 -0
  21. package/dist/dataStructure/constraint/defaults/path.mjs +12 -0
  22. package/dist/dataStructure/constraint/defaults/segmentPath.cjs +13 -0
  23. package/dist/dataStructure/constraint/defaults/segmentPath.d.ts +10 -0
  24. package/dist/dataStructure/constraint/defaults/segmentPath.mjs +12 -0
  25. package/dist/dataStructure/constraint/types/constraints.d.ts +3 -0
  26. package/dist/dataStructure/helpers/absolutePath.cjs +7 -0
  27. package/dist/dataStructure/helpers/absolutePath.d.ts +2 -0
  28. package/dist/dataStructure/helpers/absolutePath.mjs +7 -0
  29. package/dist/dataStructure/helpers/index.d.ts +3 -0
  30. package/dist/dataStructure/helpers/path.cjs +7 -0
  31. package/dist/dataStructure/helpers/path.d.ts +2 -0
  32. package/dist/dataStructure/helpers/path.mjs +7 -0
  33. package/dist/dataStructure/helpers/segmentPath.cjs +7 -0
  34. package/dist/dataStructure/helpers/segmentPath.d.ts +2 -0
  35. package/dist/dataStructure/helpers/segmentPath.mjs +7 -0
  36. package/dist/dataStructure/index.cjs +24 -0
  37. package/dist/dataStructure/index.mjs +16 -1
  38. package/dist/index.cjs +41 -39
  39. package/dist/index.mjs +3 -2
  40. package/dist/modeling/entity/namespace.cjs +1 -1
  41. package/dist/modeling/entity/namespace.mjs +2 -2
  42. package/dist/modeling/index.cjs +2 -2
  43. package/dist/modeling/index.mjs +3 -3
  44. package/dist/modeling/newType/helper.cjs +2 -2
  45. package/dist/modeling/newType/helper.d.ts +1 -1
  46. package/dist/modeling/newType/helper.mjs +2 -2
  47. package/dist/modeling/taggedObject/helper.cjs +7 -2
  48. package/dist/modeling/taggedObject/helper.d.ts +1 -0
  49. package/dist/modeling/taggedObject/helper.mjs +7 -2
  50. package/dist/number/index.cjs +0 -3
  51. package/dist/number/index.d.ts +0 -1
  52. package/dist/number/index.mjs +1 -3
  53. package/dist/path/computeRelative.cjs +5 -6
  54. package/dist/path/computeRelative.d.ts +1 -1
  55. package/dist/path/computeRelative.mjs +5 -6
  56. package/dist/path/constraints/absolute.d.ts +1 -1
  57. package/dist/path/constraints/index.d.ts +2 -1
  58. package/dist/path/constraints/segment.d.ts +3 -0
  59. package/dist/path/getBaseName.cjs +7 -7
  60. package/dist/path/getBaseName.d.ts +2 -2
  61. package/dist/path/getBaseName.mjs +7 -7
  62. package/dist/path/getExtensionName.cjs +9 -4
  63. package/dist/path/getExtensionName.d.ts +2 -2
  64. package/dist/path/getExtensionName.mjs +9 -4
  65. package/dist/path/getParentFolderPath.cjs +5 -4
  66. package/dist/path/getParentFolderPath.d.ts +1 -2
  67. package/dist/path/getParentFolderPath.mjs +5 -4
  68. package/dist/path/index.cjs +6 -3
  69. package/dist/path/index.d.ts +3 -2
  70. package/dist/path/index.mjs +5 -3
  71. package/dist/path/is.cjs +9 -4
  72. package/dist/path/is.d.ts +4 -2
  73. package/dist/path/is.mjs +9 -4
  74. package/dist/path/isAbsolute.cjs +3 -5
  75. package/dist/path/isAbsolute.d.ts +4 -2
  76. package/dist/path/isAbsolute.mjs +3 -5
  77. package/dist/path/isSegment.cjs +6 -0
  78. package/dist/path/isSegment.d.ts +4 -0
  79. package/dist/path/isSegment.mjs +6 -0
  80. package/dist/path/normalize.cjs +18 -0
  81. package/dist/path/normalize.d.ts +2 -0
  82. package/dist/path/normalize.mjs +18 -0
  83. package/dist/path/resolveFrom.cjs +4 -5
  84. package/dist/path/resolveFrom.d.ts +10 -2
  85. package/dist/path/resolveFrom.mjs +4 -5
  86. package/dist/path/resolveRelative.cjs +17 -20
  87. package/dist/path/resolveRelative.d.ts +9 -2
  88. package/dist/path/resolveRelative.mjs +17 -20
  89. package/dist/path/types/index.d.ts +6 -0
  90. package/dist/path/types/isLiteralAbsolutePath.d.ts +2 -0
  91. package/dist/path/types/isLiteralPath.d.ts +20 -0
  92. package/dist/path/types/isLiteralSegmentPath.d.ts +9 -0
  93. package/dist/path/types/requireLiteralAbsolutePath.d.ts +3 -0
  94. package/dist/path/types/requireLiteralPath.d.ts +3 -0
  95. package/dist/path/types/requireLiteralSegmentPath.d.ts +3 -0
  96. package/dist/string/index.cjs +0 -3
  97. package/dist/string/index.d.ts +0 -1
  98. package/dist/string/index.mjs +1 -3
  99. package/dist/string/types/split.d.ts +1 -1
  100. package/dist/tuple/from.cjs +6 -0
  101. package/dist/tuple/from.d.ts +8 -0
  102. package/dist/tuple/from.mjs +6 -0
  103. package/dist/tuple/index.cjs +6 -1
  104. package/dist/tuple/index.d.ts +1 -0
  105. package/dist/tuple/index.mjs +6 -2
  106. package/package.json +1 -1
  107. package/dist/array/infer.d.ts +0 -14
  108. package/dist/array/infer.mjs +0 -6
  109. package/dist/number/infer.cjs +0 -6
  110. package/dist/number/infer.d.ts +0 -12
  111. package/dist/number/infer.mjs +0 -6
  112. package/dist/path/fix.cjs +0 -8
  113. package/dist/path/fix.d.ts +0 -1
  114. package/dist/path/fix.mjs +0 -8
  115. package/dist/string/infer.cjs +0 -6
  116. package/dist/string/infer.d.ts +0 -12
@@ -43,7 +43,6 @@ const require_shift = require("./shift.cjs");
43
43
  const require_unshift = require("./unshift.cjs");
44
44
  const require_insert$2 = require("./insert.cjs");
45
45
  const require_reverse = require("./reverse.cjs");
46
- const require_infer = require("./infer.cjs");
47
46
  const require_notIncludes = require("./notIncludes.cjs");
48
47
  const require_findLast = require("./findLast.cjs");
49
48
  const require_findLastIndex = require("./findLastIndex.cjs");
@@ -82,7 +81,6 @@ var array_exports = /* @__PURE__ */ require_runtime.__exportAll({
82
81
  groupOutput: () => require_group.groupOutput,
83
82
  includes: () => require_includes.includes,
84
83
  indexOf: () => require_indexOf.indexOf,
85
- infer: () => require_infer.infer,
86
84
  insert: () => require_insert$2.insert,
87
85
  is: () => require_is.is,
88
86
  isLastIndex: () => require_isLastIndex.isLastIndex,
@@ -149,7 +147,6 @@ exports.group = require_group.group;
149
147
  exports.groupOutput = require_group.groupOutput;
150
148
  exports.includes = require_includes.includes;
151
149
  exports.indexOf = require_indexOf.indexOf;
152
- exports.infer = require_infer.infer;
153
150
  exports.insert = require_insert$2.insert;
154
151
  exports.is = require_is.is;
155
152
  exports.isLastIndex = require_isLastIndex.isLastIndex;
@@ -37,7 +37,6 @@ export * from './shift';
37
37
  export * from './unshift';
38
38
  export * from './insert';
39
39
  export * from './reverse';
40
- export * from './infer';
41
40
  export * from './notIncludes';
42
41
  export * from './findLast';
43
42
  export * from './findLastIndex';
@@ -43,7 +43,6 @@ import { shift } from "./shift.mjs";
43
43
  import { unshift } from "./unshift.mjs";
44
44
  import { insert } from "./insert.mjs";
45
45
  import { reverse } from "./reverse.mjs";
46
- import { infer } from "./infer.mjs";
47
46
  import { notIncludes } from "./notIncludes.mjs";
48
47
  import { findLast } from "./findLast.mjs";
49
48
  import { findLastIndex } from "./findLastIndex.mjs";
@@ -82,7 +81,6 @@ var array_exports = /* @__PURE__ */ __exportAll({
82
81
  groupOutput: () => groupOutput,
83
82
  includes: () => includes,
84
83
  indexOf: () => indexOf,
85
- infer: () => infer,
86
84
  insert: () => insert,
87
85
  is: () => is,
88
86
  isLastIndex: () => isLastIndex,
@@ -116,4 +114,4 @@ var array_exports = /* @__PURE__ */ __exportAll({
116
114
  unshift: () => unshift
117
115
  });
118
116
  //#endregion
119
- export { array_exports, at, chunk, coalescing, concat, copyWithin, createKind, every, fill, fillAll, filter, find, findAndReplace, findAndSpliceDelete, findAndSpliceInsert, findAndSpliceReplace, findDuplicates, findIndex, findLast, findLastIndex, first, flat, flatMap, from, group, groupOutput, includes, indexOf, infer, insert, is, isLastIndex, last, lastIndexOf, length, lengthEqual, map, maxElements, minElements, notIncludes, pop, prepend, push, reduce, reduceFrom, reduceKind, reduceRight, reduceTools, reverse, select, selectTools, set, shift, slice, some, sort, spliceDelete, spliceInsert, spliceReplace, unshift };
117
+ export { array_exports, at, chunk, coalescing, concat, copyWithin, createKind, every, fill, fillAll, filter, find, findAndReplace, findAndSpliceDelete, findAndSpliceInsert, findAndSpliceReplace, findDuplicates, findIndex, findLast, findLastIndex, first, flat, flatMap, from, group, groupOutput, includes, indexOf, insert, is, isLastIndex, last, lastIndexOf, length, lengthEqual, map, maxElements, minElements, notIncludes, pop, prepend, push, reduce, reduceFrom, reduceKind, reduceRight, reduceTools, reverse, select, selectTools, set, shift, slice, some, sort, spliceDelete, spliceInsert, spliceReplace, unshift };
@@ -7,4 +7,19 @@ export interface ComputeCastConstraintNumberRule<GenericValue extends number, Ge
7
7
  greaterThanOrEqual: GenericExpectedConstraint extends DNumber.GreaterThanOrEqual<number> ? DCommon.NeverCoalescing<(DNumber.ComputeGreaterThanOrEqualCompatibility<GenericValue, GenericExpectedConstraint, unknown> extends infer InferredResult extends CompatibilityConstraintResult<boolean, number, number> ? InferredResult extends CompatibilityConstraintResult<true> ? unknown : DCommon.IsNever<DNumber.ExtractGreaterThanOrEqual<GenericValue>> extends true ? CastError<`Impossible to cast on GreaterThanOrEqual<${InferredResult["to"]}> because constraint GreaterThan<${InferredResult["from"]}> from the value is less than.`, GenericValue, GenericExpectedConstraint> : CastError<`Impossible to cast on GreaterThanOrEqual<${InferredResult["to"]}> because constraint GreaterThanOrEqual<${InferredResult["from"]}> from the value is less than.`, GenericValue, GenericExpectedConstraint> : never), CastError<"Impossible to cast on GreaterThanOrEqual because value does not have compatible constraint.", GenericValue, GenericExpectedConstraint>> : never;
8
8
  lessThan: GenericExpectedConstraint extends DNumber.LessThan<number> ? DCommon.NeverCoalescing<(DNumber.ComputeLessThanCompatibility<GenericValue, GenericExpectedConstraint, unknown> extends infer InferredResult extends CompatibilityConstraintResult<boolean, number, number> ? InferredResult extends CompatibilityConstraintResult<true> ? unknown : DCommon.IsNever<DNumber.ExtractLessThanOrEqual<GenericValue>> extends true ? CastError<`Impossible to cast on LessThan<${InferredResult["to"]}> because constraint LessThan<${InferredResult["from"]}> from the value is greater than.`, GenericValue, GenericExpectedConstraint> : CastError<`Impossible to cast on LessThan<${InferredResult["to"]}> because constraint LessThanOrEqual<${InferredResult["from"]}> from the value is greater than or equal.`, GenericValue, GenericExpectedConstraint> : never), CastError<"Impossible to cast on LessThan because value does not have compatible constraint.", GenericValue, GenericExpectedConstraint>> : never;
9
9
  lessThanOrEqual: GenericExpectedConstraint extends DNumber.LessThanOrEqual<number> ? DCommon.NeverCoalescing<(DNumber.ComputeLessThanOrEqualCompatibility<GenericValue, GenericExpectedConstraint, unknown> extends infer InferredResult extends CompatibilityConstraintResult<boolean, number, number> ? InferredResult extends CompatibilityConstraintResult<true> ? unknown : DCommon.IsNever<DNumber.ExtractLessThanOrEqual<GenericValue>> extends true ? CastError<`Impossible to cast on LessThanOrEqual<${InferredResult["to"]}> because constraint LessThan<${InferredResult["from"]}> from the value is greater than.`, GenericValue, GenericExpectedConstraint> : CastError<`Impossible to cast on LessThanOrEqual<${InferredResult["to"]}> because constraint LessThanOrEqual<${InferredResult["from"]}> from the value is greater than.`, GenericValue, GenericExpectedConstraint> : never), CastError<"Impossible to cast on LessThanOrEqual because value does not have compatible constraint.", GenericValue, GenericExpectedConstraint>> : never;
10
+ integer: GenericExpectedConstraint extends DNumber.Integer ? DCommon.Or<[
11
+ DNumber.IsInteger<GenericValue>,
12
+ DCommon.IsExtends<GenericValue, DNumber.Integer>
13
+ ]> extends true ? unknown : CastError<`Impossible to cast on Integer because value ${GenericValue} is not an integer.`, GenericValue, GenericExpectedConstraint> : never;
14
+ notZero: GenericExpectedConstraint extends DNumber.NotZero ? DCommon.Or<[
15
+ DCommon.And<[
16
+ DCommon.Not<DNumber.IsZero<GenericValue>>,
17
+ DNumber.IsLiteral<GenericValue>
18
+ ]>,
19
+ DCommon.IsExtends<GenericValue, DNumber.NotZero>
20
+ ]> extends true ? unknown : CastError<`Impossible to cast on NotZero because value ${GenericValue} is equal to zero.`, GenericValue, GenericExpectedConstraint> : never;
21
+ safe: GenericExpectedConstraint extends DNumber.Safe ? DCommon.Or<[
22
+ DNumber.IsSafe<GenericValue>,
23
+ DCommon.IsExtends<GenericValue, DNumber.Safe>
24
+ ]> extends true ? unknown : CastError<`Impossible to cast on Safe because value ${GenericValue} is not safe.`, GenericValue, GenericExpectedConstraint> : never;
10
25
  }
@@ -2,8 +2,21 @@ import { CastError } from './error';
2
2
  import { CompatibilityConstraintResult, BaseConstraint } from '../types';
3
3
  import type * as DString from '../../../string';
4
4
  import type * as DCommon from '../..';
5
+ import type * as DPath from '../../../path';
5
6
  export interface ComputeCastConstraintStringRule<GenericValue extends string, GenericExpectedConstraint extends BaseConstraint> {
6
7
  maxCharacters: GenericExpectedConstraint extends DString.MaxCharacters<number> ? DCommon.NeverCoalescing<(DString.ComputeMaxCharactersCompatibility<GenericValue, GenericExpectedConstraint, unknown> extends infer InferredResult extends CompatibilityConstraintResult<boolean, number, number> ? InferredResult extends CompatibilityConstraintResult<true> ? unknown : DCommon.IsNever<DString.ExtractLengthEqual<GenericValue>> extends true ? CastError<`Impossible to cast on MaxCharacters<${InferredResult["to"]}> because constraint MaxCharacters<${InferredResult["from"]}> from the value is more than.`, GenericValue, GenericExpectedConstraint> : CastError<`Impossible to cast on MaxCharacters<${InferredResult["to"]}> because constraint LengthEqual<${InferredResult["from"]}> from the value is more than.`, GenericValue, GenericExpectedConstraint> : never), CastError<"Impossible to cast on MaxCharacters because value does not have MaxCharacters constraint.", GenericValue, GenericExpectedConstraint>> : never;
7
8
  minCharacters: GenericExpectedConstraint extends DString.MinCharacters<number> ? DCommon.NeverCoalescing<(DString.ComputeMinCharactersCompatibility<GenericValue, GenericExpectedConstraint, unknown> extends infer InferredResult extends CompatibilityConstraintResult<boolean, number, number> ? InferredResult extends CompatibilityConstraintResult<true> ? unknown : DCommon.IsNever<DString.ExtractLengthEqual<GenericValue>> extends true ? CastError<`Impossible to cast on MinCharacters<${InferredResult["to"]}> because constraint MinCharacters<${InferredResult["from"]}> from the value is less than.`, GenericValue, GenericExpectedConstraint> : CastError<`Impossible to cast on MinCharacters<${InferredResult["to"]}> because constraint LengthEqual<${InferredResult["from"]}> from the value is less than.`, GenericValue, GenericExpectedConstraint> : never), CastError<"Impossible to cast on MinCharacters because value does not have MinCharacters constraint.", GenericValue, GenericExpectedConstraint>> : never;
8
9
  lengthEqual: GenericExpectedConstraint extends DString.LengthEqual<number> ? DCommon.NeverCoalescing<(DString.ComputeLengthEqualCompatibility<GenericValue, GenericExpectedConstraint, unknown> extends infer InferredResult extends CompatibilityConstraintResult<boolean, number, number> ? InferredResult extends CompatibilityConstraintResult<true> ? unknown : CastError<`Impossible to cast on LengthEqual<${InferredResult["to"]}> because constraint LengthEqual<${InferredResult["from"]}> from the value is not equal.`, GenericValue, GenericExpectedConstraint> : never), CastError<"Impossible to cast on LengthEqual because value does not have LengthEqual constraint.", GenericValue, GenericExpectedConstraint>> : never;
10
+ path: DCommon.IsExtends<GenericExpectedConstraint, DPath.Path> extends true ? DCommon.Or<[
11
+ DPath.IsLiteralPath<GenericValue>,
12
+ DCommon.IsExtends<GenericValue, DPath.Path | DPath.Absolute | DPath.Segment>
13
+ ]> extends true ? unknown : CastError<`Impossible to cast on Path because value ${GenericValue} is not path.`, GenericValue, GenericExpectedConstraint> : never;
14
+ absolutePath: DCommon.IsExtends<GenericExpectedConstraint, DPath.Absolute> extends true ? DCommon.Or<[
15
+ DPath.IsLiteralAbsolutePath<GenericValue>,
16
+ DCommon.IsExtends<GenericValue, DPath.Absolute>
17
+ ]> extends true ? unknown : CastError<`Impossible to cast on AbsolutePath because value ${GenericValue} is not absolute path.`, GenericValue, GenericExpectedConstraint> : never;
18
+ segment: DCommon.IsExtends<GenericExpectedConstraint, DPath.Segment> extends true ? DCommon.Or<[
19
+ DPath.IsLiteralSegmentPath<GenericValue>,
20
+ DCommon.IsExtends<GenericValue, DPath.Segment>
21
+ ]> extends true ? unknown : CastError<`Impossible to cast on SegmentPath because value ${GenericValue} is not segment path.`, GenericValue, GenericExpectedConstraint> : never;
9
22
  }
@@ -1,3 +1,4 @@
1
1
  export * from './cast';
2
+ export * from './infer';
2
3
  export * from './remove';
3
4
  export * from './types';
@@ -0,0 +1,7 @@
1
+ import type * as DArray from '../../../array';
2
+ import type * as DCommon from '../..';
3
+ export interface ComputeInferConstraintArrayRule<GenericInput extends readonly unknown[], GenericOutput extends unknown> {
4
+ maxElements: DArray.ComputeMaxElementsCompatibility<GenericInput, GenericOutput, unknown> extends infer InferredResult extends DCommon.CompatibilityConstraintResult<boolean, number, number> ? InferredResult extends DCommon.CompatibilityConstraintResult<true> ? DArray.MaxElements<InferredResult["to"]> : DCommon.ComputedTypeError<`Impossible to cast on MaxElements<${InferredResult["to"]}> because constraint MaxElements<${InferredResult["from"]}> from the value is more than.`> : never;
5
+ minElements: DArray.ComputeMinElementsCompatibility<GenericInput, GenericOutput, unknown> extends infer InferredResult extends DCommon.CompatibilityConstraintResult<boolean, number, number> ? InferredResult extends DCommon.CompatibilityConstraintResult<true> ? DArray.MinElements<InferredResult["to"]> : DCommon.ComputedTypeError<`Impossible to cast on MinElements<${InferredResult["to"]}> because constraint MinElements<${InferredResult["from"]}> from the value is less than.`> : never;
6
+ lengthEqual: DArray.ComputeLengthEqualCompatibility<GenericInput, GenericOutput, unknown> extends infer InferredResult extends DCommon.CompatibilityConstraintResult<boolean, number, number> ? InferredResult extends DCommon.CompatibilityConstraintResult<true> ? DArray.LengthEqual<InferredResult["to"]> : DCommon.ComputedTypeError<`Impossible to cast on LengthEqual<${InferredResult["to"]}> because constraint LengthEqual<${InferredResult["from"]}> from the value is not equal.`> : never;
7
+ }
@@ -1,4 +1,4 @@
1
- //#region scripts/array/infer.ts
1
+ //#region scripts/common/constraint/infer/index.ts
2
2
  function infer(input) {
3
3
  return input;
4
4
  }
@@ -0,0 +1,26 @@
1
+ import { ComputeInferConstraintArrayRule } from './array';
2
+ import { ComputeInferConstraintNumberRule } from './number';
3
+ import { ComputeInferConstraintStringRule } from './string';
4
+ import type * as DCommon from '../..';
5
+ import type * as DNumber from '../../../number';
6
+ import type * as DObject from '../../../object';
7
+ import type * as DString from '../../../string';
8
+ import type * as DTuple from '../../../tuple';
9
+ export type * from './array';
10
+ export type * from './number';
11
+ export type * from './string';
12
+ export interface ComputeInferConstraintRule<GenericInput extends unknown, GenericOutput extends unknown> {
13
+ string: GenericInput extends string ? DObject.Values<ComputeInferConstraintStringRule<GenericInput, GenericOutput>> : never;
14
+ number: GenericInput extends number ? DObject.Values<ComputeInferConstraintNumberRule<GenericInput, GenericOutput>> : never;
15
+ array: GenericInput extends readonly unknown[] ? DObject.Values<ComputeInferConstraintArrayRule<GenericInput, GenericOutput>> : never;
16
+ }
17
+ export type ComputeInferConstraint<GenericInput extends unknown, GenericOutput extends unknown> = DCommon.Or<[
18
+ DCommon.IsNever<GenericInput>,
19
+ DCommon.IsNever<GenericOutput>
20
+ ]> extends true ? unknown : (GenericInput extends unknown ? (GenericOutput extends unknown ? DObject.Values<ComputeInferConstraintRule<GenericInput, GenericOutput>> extends infer InferredResult ? DCommon.ContainExtends<InferredResult, DCommon.ComputedTypeError<string>> extends true ? Extract<InferredResult, DCommon.ComputedTypeError<string>> : GenericInput & DCommon.UnionToIntersection<InferredResult> : never : never) extends infer InferredResult ? DCommon.IsExtends<InferredResult, DCommon.ComputedTypeError<string>> extends true ? InferredResult : Extract<InferredResult, DCommon.BaseConstraint> : never : never) extends infer InferredResult ? DCommon.IsExtends<InferredResult, DCommon.BaseConstraint> extends true ? Extract<InferredResult, DCommon.BaseConstraint> : InferredResult : never;
21
+ export type SupportedOutputInfer = (string | readonly unknown[] | number);
22
+ type ComputeInferInputRequirement<GenericInput extends unknown> = GenericInput extends string ? DString.RequireLiteral<GenericInput> : GenericInput extends number ? DNumber.RequireLiteral<GenericInput> : GenericInput extends readonly unknown[] ? DTuple.Require<GenericInput> : never;
23
+ export declare function infer<GenericOutput extends SupportedOutputInfer, const GenericInput extends DCommon.RemoveConstraint<GenericOutput> = never, GenericComputedOutput = ComputeInferConstraint<GenericInput, GenericOutput>>(input: (GenericInput & ComputeInferInputRequirement<GenericInput> & DCommon.BreakGenericLink<DCommon.NeverCoalescing<GenericComputedOutput extends DCommon.ComputedTypeError<string> ? GenericComputedOutput : never, unknown>>)): DCommon.Or<[
24
+ DCommon.IsNever<GenericInput>,
25
+ DCommon.ContainExtends<GenericComputedOutput, DCommon.ComputedTypeError<string>>
26
+ ]> extends true ? GenericOutput : DCommon.BreakGenericLink<DCommon.NeverCoalescing<GenericComputedOutput, GenericInput>>;
@@ -1,4 +1,4 @@
1
- //#region scripts/string/infer.ts
1
+ //#region scripts/common/constraint/infer/index.ts
2
2
  function infer(input) {
3
3
  return input;
4
4
  }
@@ -0,0 +1,11 @@
1
+ import type * as DCommon from '../..';
2
+ import type * as DNumber from '../../../number';
3
+ export interface ComputeInferConstraintNumberRule<GenericInput extends number, GenericOutput extends unknown> {
4
+ greaterThan: DNumber.ComputeGreaterThanCompatibility<GenericInput, GenericOutput, unknown> extends infer InferredResult extends DCommon.CompatibilityConstraintResult<boolean, number, number> ? InferredResult extends DCommon.CompatibilityConstraintResult<true> ? DNumber.GreaterThan<InferredResult["to"]> : DCommon.ComputedTypeError<`Impossible to cast on GreaterThan<${InferredResult["to"]}> because value ${InferredResult["from"]} is less than or equal.`> : never;
5
+ greaterThanOrEqual: DNumber.ComputeGreaterThanOrEqualCompatibility<GenericInput, GenericOutput, unknown> extends infer InferredResult extends DCommon.CompatibilityConstraintResult<boolean, number, number> ? InferredResult extends DCommon.CompatibilityConstraintResult<true> ? DNumber.GreaterThanOrEqual<InferredResult["to"]> : DCommon.ComputedTypeError<`Impossible to cast on GreaterThanOrEqual<${InferredResult["to"]}> because value ${InferredResult["from"]} is less than.`> : never;
6
+ lessThan: DNumber.ComputeLessThanCompatibility<GenericInput, GenericOutput, unknown> extends infer InferredResult extends DCommon.CompatibilityConstraintResult<boolean, number, number> ? InferredResult extends DCommon.CompatibilityConstraintResult<true> ? DNumber.LessThan<InferredResult["to"]> : DCommon.ComputedTypeError<`Impossible to cast on LessThan<${InferredResult["to"]}> because value ${InferredResult["from"]} is greater than or equal.`> : never;
7
+ lessThanOrEqual: DNumber.ComputeLessThanOrEqualCompatibility<GenericInput, GenericOutput, unknown> extends infer InferredResult extends DCommon.CompatibilityConstraintResult<boolean, number, number> ? InferredResult extends DCommon.CompatibilityConstraintResult<true> ? DNumber.LessThanOrEqual<InferredResult["to"]> : DCommon.ComputedTypeError<`Impossible to cast on LessThanOrEqual<${InferredResult["to"]}> because value ${InferredResult["from"]} is greater than.`> : never;
8
+ integer: DCommon.IsExtends<GenericOutput, DNumber.Integer> extends true ? DNumber.IsInteger<GenericInput> extends true ? DNumber.Integer : DCommon.ComputedTypeError<`Impossible to cast on Integer because value ${GenericInput} is not an integer.`> : never;
9
+ notZero: DCommon.IsExtends<GenericOutput, DNumber.NotZero> extends true ? DNumber.IsZero<GenericInput> extends true ? DCommon.ComputedTypeError<`Impossible to cast on NotZero because value ${GenericInput} is equal to zero.`> : DNumber.NotZero : never;
10
+ safe: DCommon.IsExtends<GenericOutput, DNumber.Safe> extends true ? DNumber.IsSafe<GenericInput> extends true ? DNumber.Safe : DCommon.ComputedTypeError<`Impossible to cast on Safe because value ${GenericInput} is not safe.`> : never;
11
+ }
@@ -0,0 +1,11 @@
1
+ import type * as DCommon from '../..';
2
+ import type * as DString from '../../../string';
3
+ import type * as DPath from '../../../path';
4
+ export interface ComputeInferConstraintStringRule<GenericInput extends string, GenericOutput extends unknown> {
5
+ maxCharacters: DString.ComputeMaxCharactersCompatibility<GenericInput, GenericOutput, unknown> extends infer InferredResult extends DCommon.CompatibilityConstraintResult<boolean, number, number> ? InferredResult extends DCommon.CompatibilityConstraintResult<true> ? DString.MaxCharacters<InferredResult["to"]> : DCommon.ComputedTypeError<`Impossible to cast on MaxCharacters<${InferredResult["to"]}> because constraint MaxCharacters<${InferredResult["from"]}> from the value is more than.`> : never;
6
+ minCharacters: DString.ComputeMinCharactersCompatibility<GenericInput, GenericOutput, unknown> extends infer InferredResult extends DCommon.CompatibilityConstraintResult<boolean, number, number> ? InferredResult extends DCommon.CompatibilityConstraintResult<true> ? DString.MinCharacters<InferredResult["to"]> : DCommon.ComputedTypeError<`Impossible to cast on MinCharacters<${InferredResult["to"]}> because constraint MinCharacters<${InferredResult["from"]}> from the value is less than.`> : never;
7
+ lengthEqual: DString.ComputeLengthEqualCompatibility<GenericInput, GenericOutput, unknown> extends infer InferredResult extends DCommon.CompatibilityConstraintResult<boolean, number, number> ? InferredResult extends DCommon.CompatibilityConstraintResult<true> ? DString.LengthEqual<InferredResult["to"]> : DCommon.ComputedTypeError<`Impossible to cast on LengthEqual<${InferredResult["to"]}> because constraint LengthEqual<${InferredResult["from"]}> from the value is not equal.`> : never;
8
+ path: DCommon.IsExtends<GenericOutput, DPath.Path> extends true ? DPath.IsLiteralPath<GenericInput> extends true ? DPath.Path : DCommon.ComputedTypeError<`Impossible to cast on Path because value ${GenericInput} is not path.`> : never;
9
+ absolutePath: DCommon.IsExtends<GenericOutput, DPath.Absolute> extends true ? DPath.IsLiteralAbsolutePath<GenericInput> extends true ? DPath.Absolute : DCommon.ComputedTypeError<`Impossible to cast on AbsolutePath because value ${GenericInput} is not absolute path.`> : never;
10
+ segment: DCommon.IsExtends<GenericOutput, DPath.Segment> extends true ? DPath.IsLiteralSegmentPath<GenericInput> extends true ? DPath.Segment : DCommon.ComputedTypeError<`Impossible to cast on SegmentPath because value ${GenericInput} is not segment path.`> : never;
11
+ }
@@ -13,6 +13,7 @@ const require_builder = require("./builder.cjs");
13
13
  const require_callThen = require("./callThen.cjs");
14
14
  const require_clone = require("./clone.cjs");
15
15
  const require_index = require("./constraint/cast/index.cjs");
16
+ const require_index$1 = require("./constraint/infer/index.cjs");
16
17
  const require_remove = require("./constraint/remove.cjs");
17
18
  const require_detachObjectMethod = require("./detachObjectMethod.cjs");
18
19
  const require_enum = require("./enum.cjs");
@@ -87,6 +88,7 @@ var common_exports = /* @__PURE__ */ require_runtime.__exportAll({
87
88
  forward: () => require_forward.forward,
88
89
  forwardAsserts: () => require_forwardAsserts.forwardAsserts,
89
90
  forwardLog: () => require_forwardLog.forwardLog,
91
+ infer: () => require_index$1.infer,
90
92
  innerPipe: () => require_innerPipe.innerPipe,
91
93
  instanceOf: () => require_instanceOf.instanceOf,
92
94
  isType: () => require_isType.isType,
@@ -161,6 +163,7 @@ exports.falsy = require_falsy.falsy;
161
163
  exports.forward = require_forward.forward;
162
164
  exports.forwardAsserts = require_forwardAsserts.forwardAsserts;
163
165
  exports.forwardLog = require_forwardLog.forwardLog;
166
+ exports.infer = require_index$1.infer;
164
167
  exports.innerPipe = require_innerPipe.innerPipe;
165
168
  exports.instanceOf = require_instanceOf.instanceOf;
166
169
  exports.isType = require_isType.isType;
@@ -13,6 +13,7 @@ import { MissingBuilderMethodsError, builderKind, createBuilder } from "./builde
13
13
  import { callThen } from "./callThen.mjs";
14
14
  import { clone } from "./clone.mjs";
15
15
  import { cast, shameOnYou } from "./constraint/cast/index.mjs";
16
+ import { infer } from "./constraint/infer/index.mjs";
16
17
  import { removeConstraint } from "./constraint/remove.mjs";
17
18
  import { detachObjectMethod } from "./detachObjectMethod.mjs";
18
19
  import { createEnum } from "./enum.mjs";
@@ -87,6 +88,7 @@ var common_exports = /* @__PURE__ */ __exportAll({
87
88
  forward: () => forward,
88
89
  forwardAsserts: () => forwardAsserts,
89
90
  forwardLog: () => forwardLog,
91
+ infer: () => infer,
90
92
  innerPipe: () => innerPipe,
91
93
  instanceOf: () => instanceOf,
92
94
  isType: () => isType,
@@ -123,4 +125,4 @@ var common_exports = /* @__PURE__ */ __exportAll({
123
125
  whenNot: () => whenNot
124
126
  });
125
127
  //#endregion
126
- export { AssertsError, InvalidBytesInStringError, InvalidMillisecondInStringError, MissingBuilderMethodsError, TheFormData, and, asserts, asyncInnerPipe, asyncLoop, asyncPipe, bindPrototypeMethods, builderKind, callThen, cast, clone, common_exports, createAsyncRetry, createBuilder, createEnum, createExternalPromise, createFormData, createGlobalStore, createInterpolation, createKind, createQueue, createTransformer, detachObjectMethod, equal, escapeRegExp, falsy, forward, forwardAsserts, forwardLog, innerPipe, instanceOf, isType, justExec, justReturn, loop, memo, memoObject, memoPromise, mimeType, or, pipe, pipeCall, prepareAsyncPipe, preparePipe, promiseAll, promiseObject, queueKind, removeConstraint, shameOnYou, simpleClone, stringToBytes, stringToMillisecond, timeout, toCurriedPredicate, toJSON, toNative, toRegExp, transformer, truthy, useAsyncRetry, when, whenElse, whenNot };
128
+ export { AssertsError, InvalidBytesInStringError, InvalidMillisecondInStringError, MissingBuilderMethodsError, TheFormData, and, asserts, asyncInnerPipe, asyncLoop, asyncPipe, bindPrototypeMethods, builderKind, callThen, cast, clone, common_exports, createAsyncRetry, createBuilder, createEnum, createExternalPromise, createFormData, createGlobalStore, createInterpolation, createKind, createQueue, createTransformer, detachObjectMethod, equal, escapeRegExp, falsy, forward, forwardAsserts, forwardLog, infer, innerPipe, instanceOf, isType, justExec, justReturn, loop, memo, memoObject, memoPromise, mimeType, or, pipe, pipeCall, prepareAsyncPipe, preparePipe, promiseAll, promiseObject, queueKind, removeConstraint, shameOnYou, simpleClone, stringToBytes, stringToMillisecond, timeout, toCurriedPredicate, toJSON, toNative, toRegExp, transformer, truthy, useAsyncRetry, when, whenElse, whenNot };
@@ -0,0 +1,13 @@
1
+ const require_kind = require("../../kind.cjs");
2
+ const require_resultSymbol = require("../../common/resultSymbol.cjs");
3
+ const require_base = require("../base.cjs");
4
+ const require_isAbsolute = require("../../../path/isAbsolute.cjs");
5
+ //#region scripts/dataStructure/constraint/defaults/absolutePath.ts
6
+ const absolutePathConstraintKind = require_kind.createKind("absolute-path-constraint");
7
+ const AbsolutePathConstraint = require_base.createConstraint(absolutePathConstraintKind, ({ init }) => () => init({}, {
8
+ executeCheck: (_self, data) => require_isAbsolute.isAbsolute(data) ? require_resultSymbol.SuccessSymbol : require_resultSymbol.ErrorSymbol,
9
+ isAsynchronous: () => false
10
+ }));
11
+ //#endregion
12
+ exports.AbsolutePathConstraint = AbsolutePathConstraint;
13
+ exports.absolutePathConstraintKind = absolutePathConstraintKind;
@@ -0,0 +1,10 @@
1
+ import { ConstraintDefinition, Constraint } from '../base';
2
+ import type * as DCommon from '../../../common';
3
+ import type * as DKind from '../../../kind';
4
+ import * as DPath from '../../../path';
5
+ export declare const absolutePathConstraintKind: DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/absolute-path-constraint", unknown>>;
6
+ export interface AbsolutePathConstraintDefinition extends ConstraintDefinition {
7
+ }
8
+ export interface AbsolutePathConstraint extends DCommon.Forward<Constraint<string, string & DPath.Absolute, AbsolutePathConstraintDefinition> & DKind.Kind<typeof absolutePathConstraintKind>> {
9
+ }
10
+ export declare const AbsolutePathConstraint: () => AbsolutePathConstraint;
@@ -0,0 +1,12 @@
1
+ import { createKind } from "../../kind.mjs";
2
+ import { ErrorSymbol, SuccessSymbol } from "../../common/resultSymbol.mjs";
3
+ import { createConstraint } from "../base.mjs";
4
+ import { isAbsolute } from "../../../path/isAbsolute.mjs";
5
+ //#region scripts/dataStructure/constraint/defaults/absolutePath.ts
6
+ const absolutePathConstraintKind = createKind("absolute-path-constraint");
7
+ const AbsolutePathConstraint = createConstraint(absolutePathConstraintKind, ({ init }) => () => init({}, {
8
+ executeCheck: (_self, data) => isAbsolute(data) ? SuccessSymbol : ErrorSymbol,
9
+ isAsynchronous: () => false
10
+ }));
11
+ //#endregion
12
+ export { AbsolutePathConstraint, absolutePathConstraintKind };
@@ -1,3 +1,4 @@
1
+ export * from './absolutePath';
1
2
  export * from './allowedCharacters';
2
3
  export * from './arrayLengthEqual';
3
4
  export * from './betweenThan';
@@ -18,9 +19,11 @@ export * from './negative';
18
19
  export * from './notEmpty';
19
20
  export * from './notZero';
20
21
  export * from './odd';
22
+ export * from './path';
21
23
  export * from './positive';
22
24
  export * from './refine';
23
25
  export * from './safe';
26
+ export * from './segmentPath';
24
27
  export * from './strictNegative';
25
28
  export * from './strictPositive';
26
29
  export * from './stringLengthEqual';
@@ -0,0 +1,13 @@
1
+ const require_kind = require("../../kind.cjs");
2
+ const require_resultSymbol = require("../../common/resultSymbol.cjs");
3
+ const require_base = require("../base.cjs");
4
+ const require_is = require("../../../path/is.cjs");
5
+ //#region scripts/dataStructure/constraint/defaults/path.ts
6
+ const pathConstraintKind = require_kind.createKind("path-constraint");
7
+ const PathConstraint = require_base.createConstraint(pathConstraintKind, ({ init }) => () => init({}, {
8
+ executeCheck: (_self, data) => require_is.is(data) ? require_resultSymbol.SuccessSymbol : require_resultSymbol.ErrorSymbol,
9
+ isAsynchronous: () => false
10
+ }));
11
+ //#endregion
12
+ exports.PathConstraint = PathConstraint;
13
+ exports.pathConstraintKind = pathConstraintKind;
@@ -0,0 +1,10 @@
1
+ import { ConstraintDefinition, Constraint } from '../base';
2
+ import type * as DCommon from '../../../common';
3
+ import type * as DKind from '../../../kind';
4
+ import * as DPath from '../../../path';
5
+ export declare const pathConstraintKind: DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/path-constraint", unknown>>;
6
+ export interface PathConstraintDefinition extends ConstraintDefinition {
7
+ }
8
+ export interface PathConstraint extends DCommon.Forward<Constraint<string, string & DPath.Path, PathConstraintDefinition> & DKind.Kind<typeof pathConstraintKind>> {
9
+ }
10
+ export declare const PathConstraint: () => PathConstraint;
@@ -0,0 +1,12 @@
1
+ import { createKind } from "../../kind.mjs";
2
+ import { ErrorSymbol, SuccessSymbol } from "../../common/resultSymbol.mjs";
3
+ import { createConstraint } from "../base.mjs";
4
+ import { is } from "../../../path/is.mjs";
5
+ //#region scripts/dataStructure/constraint/defaults/path.ts
6
+ const pathConstraintKind = createKind("path-constraint");
7
+ const PathConstraint = createConstraint(pathConstraintKind, ({ init }) => () => init({}, {
8
+ executeCheck: (_self, data) => is(data) ? SuccessSymbol : ErrorSymbol,
9
+ isAsynchronous: () => false
10
+ }));
11
+ //#endregion
12
+ export { PathConstraint, pathConstraintKind };
@@ -0,0 +1,13 @@
1
+ const require_kind = require("../../kind.cjs");
2
+ const require_resultSymbol = require("../../common/resultSymbol.cjs");
3
+ const require_base = require("../base.cjs");
4
+ const require_isSegment = require("../../../path/isSegment.cjs");
5
+ //#region scripts/dataStructure/constraint/defaults/segmentPath.ts
6
+ const segmentPathConstraintKind = require_kind.createKind("segment-path-constraint");
7
+ const SegmentPathConstraint = require_base.createConstraint(segmentPathConstraintKind, ({ init }) => () => init({}, {
8
+ executeCheck: (_self, data) => require_isSegment.isSegment(data) ? require_resultSymbol.SuccessSymbol : require_resultSymbol.ErrorSymbol,
9
+ isAsynchronous: () => false
10
+ }));
11
+ //#endregion
12
+ exports.SegmentPathConstraint = SegmentPathConstraint;
13
+ exports.segmentPathConstraintKind = segmentPathConstraintKind;
@@ -0,0 +1,10 @@
1
+ import { ConstraintDefinition, Constraint } from '../base';
2
+ import type * as DCommon from '../../../common';
3
+ import type * as DKind from '../../../kind';
4
+ import * as DPath from '../../../path';
5
+ export declare const segmentPathConstraintKind: DKind.Handler<DKind.Definition<"@DuplojsLangDataStructure/segment-path-constraint", unknown>>;
6
+ export interface SegmentPathConstraintDefinition extends ConstraintDefinition {
7
+ }
8
+ export interface SegmentPathConstraint extends DCommon.Forward<Constraint<string, string & DPath.Segment, SegmentPathConstraintDefinition> & DKind.Kind<typeof segmentPathConstraintKind>> {
9
+ }
10
+ export declare const SegmentPathConstraint: () => SegmentPathConstraint;
@@ -0,0 +1,12 @@
1
+ import { createKind } from "../../kind.mjs";
2
+ import { ErrorSymbol, SuccessSymbol } from "../../common/resultSymbol.mjs";
3
+ import { createConstraint } from "../base.mjs";
4
+ import { isSegment } from "../../../path/isSegment.mjs";
5
+ //#region scripts/dataStructure/constraint/defaults/segmentPath.ts
6
+ const segmentPathConstraintKind = createKind("segment-path-constraint");
7
+ const SegmentPathConstraint = createConstraint(segmentPathConstraintKind, ({ init }) => () => init({}, {
8
+ executeCheck: (_self, data) => isSegment(data) ? SuccessSymbol : ErrorSymbol,
9
+ isAsynchronous: () => false
10
+ }));
11
+ //#endregion
12
+ export { SegmentPathConstraint, segmentPathConstraintKind };
@@ -30,6 +30,9 @@ export interface ConstraintsStore {
30
30
  greaterThanOrEqual: DDefaults.GreaterThanOrEqualConstraint;
31
31
  lessThan: DDefaults.LessThanConstraint;
32
32
  lessThanOrEqual: DDefaults.LessThanOrEqualConstraint;
33
+ absolutePath: DDefaults.AbsolutePathConstraint;
34
+ path: DDefaults.PathConstraint;
35
+ segmentPath: DDefaults.SegmentPathConstraint;
33
36
  refine: DDefaults.RefineConstraint;
34
37
  }
35
38
  export type Constraints = Extract<ConstraintsStore[keyof ConstraintsStore], Constraint>;
@@ -0,0 +1,7 @@
1
+ const require_absolutePath = require("../constraint/defaults/absolutePath.cjs");
2
+ //#region scripts/dataStructure/helpers/absolutePath.ts
3
+ function absolutePath() {
4
+ return require_absolutePath.AbsolutePathConstraint();
5
+ }
6
+ //#endregion
7
+ exports.absolutePath = absolutePath;
@@ -0,0 +1,2 @@
1
+ import { AbsolutePathConstraint } from '../constraint';
2
+ export declare function absolutePath(): AbsolutePathConstraint;
@@ -0,0 +1,7 @@
1
+ import { AbsolutePathConstraint } from "../constraint/defaults/absolutePath.mjs";
2
+ //#region scripts/dataStructure/helpers/absolutePath.ts
3
+ function absolutePath() {
4
+ return AbsolutePathConstraint();
5
+ }
6
+ //#endregion
7
+ export { absolutePath };
@@ -1,3 +1,4 @@
1
+ export * from './absolutePath';
1
2
  export * from './allowedCharacters';
2
3
  export * from './array';
3
4
  export * from './arrayLengthEqual';
@@ -33,11 +34,13 @@ export * from './object';
33
34
  export * from './odd';
34
35
  export * from './optional';
35
36
  export * from './partial';
37
+ export * from './path';
36
38
  export * from './positive';
37
39
  export * from './record';
38
40
  export * from './refine';
39
41
  export * from './required';
40
42
  export * from './safe';
43
+ export * from './segmentPath';
41
44
  export * from './string';
42
45
  export * from './strictNegative';
43
46
  export * from './strictPositive';
@@ -0,0 +1,7 @@
1
+ const require_path = require("../constraint/defaults/path.cjs");
2
+ //#region scripts/dataStructure/helpers/path.ts
3
+ function path() {
4
+ return require_path.PathConstraint();
5
+ }
6
+ //#endregion
7
+ exports.path = path;
@@ -0,0 +1,2 @@
1
+ import { PathConstraint } from '../constraint';
2
+ export declare function path(): PathConstraint;
@@ -0,0 +1,7 @@
1
+ import { PathConstraint } from "../constraint/defaults/path.mjs";
2
+ //#region scripts/dataStructure/helpers/path.ts
3
+ function path() {
4
+ return PathConstraint();
5
+ }
6
+ //#endregion
7
+ export { path };
@@ -0,0 +1,7 @@
1
+ const require_segmentPath = require("../constraint/defaults/segmentPath.cjs");
2
+ //#region scripts/dataStructure/helpers/segmentPath.ts
3
+ function segmentPath() {
4
+ return require_segmentPath.SegmentPathConstraint();
5
+ }
6
+ //#endregion
7
+ exports.segmentPath = segmentPath;
@@ -0,0 +1,2 @@
1
+ import { SegmentPathConstraint } from '../constraint';
2
+ export declare function segmentPath(): SegmentPathConstraint;
@@ -0,0 +1,7 @@
1
+ import { SegmentPathConstraint } from "../constraint/defaults/segmentPath.mjs";
2
+ //#region scripts/dataStructure/helpers/segmentPath.ts
3
+ function segmentPath() {
4
+ return SegmentPathConstraint();
5
+ }
6
+ //#endregion
7
+ export { segmentPath };