@danielsimonjr/mathts-core 0.4.1 → 0.6.0

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.
@@ -1,3 +1,31 @@
1
+ /**
2
+ * Type for a factory function that creates instances
3
+ */
4
+ interface FactoryFunction<TResult = unknown> {
5
+ (scope: Record<string, unknown>): TResult;
6
+ isFactory: true;
7
+ fn: string;
8
+ dependencies: string[];
9
+ meta?: FactoryMeta;
10
+ }
11
+ /**
12
+ * Meta information that can be attached to a factory
13
+ */
14
+ interface FactoryMeta {
15
+ /**
16
+ * If true, the factory will be recreated when config changes
17
+ */
18
+ recreateOnConfigChange?: boolean;
19
+ /**
20
+ * If true, this is a lazy factory that should only be created when needed
21
+ */
22
+ lazy?: boolean;
23
+ /**
24
+ * Additional custom metadata
25
+ */
26
+ [key: string]: unknown;
27
+ }
28
+
1
29
  interface BigNumber {
2
30
  isBigNumber: boolean;
3
31
  constructor: {
@@ -334,4 +362,4 @@ interface UnitConstructor {
334
362
  /** The core `Unit` class, pre-wired to core's numeric primitives. */
335
363
  declare const Unit: UnitConstructor;
336
364
 
337
- export { isNull as $, type UnitSystem as A, type BaseUnitDef as B, type Complex as C, type DenseMatrix as D, type UnitSystemEntry as E, type Fraction as F, isArray as G, isBigInt as H, type Index as I, isBigNumber as J, isBoolean as K, isCollection as L, type Matrix as M, type Numeric as N, isComplex as O, type ParseOptions as P, isDate as Q, type Range as R, type ScalarBinaryOp as S, type TypeConverters as T, Unit as U, isDenseMatrix as V, isFraction as W, isFunction as X, isIndex as Y, isMap as Z, isMatrix as _, type UnitInstance as a, isNumber as a0, isObject as a1, isRange as a2, isRegExp as a3, isSparseMatrix as a4, isString as a5, isUndefined as a6, typeOf as a7, type UnitConstructor as b, type UnitDependencies as c, type BigNumber as d, type BigNumberConstructor as e, type BigNumberValue as f, type ComplexConstructor as g, type ComplexValue as h, isUnit as i, type ConverterFn as j, type CreateUnitDefObject as k, type CreateUnitOptions as l, type FractionConstructor as m, type FractionValue as n, type IndexDimension as o, type PrefixDef as p, type PrefixTable as q, type ScalarUnaryOp as r, type SparseMatrix as s, type SubtractScalar as t, type Unit$1 as u, type UnitComponent as v, type UnitConfig as w, type UnitDef as x, type UnitFormatOptions as y, type UnitJSON as z };
365
+ export { isMatrix as $, type UnitJSON as A, type BaseUnitDef as B, type Complex as C, type DenseMatrix as D, type UnitSystem as E, type FactoryFunction as F, type UnitSystemEntry as G, isArray as H, type Index as I, isBigInt as J, isBigNumber as K, isBoolean as L, type Matrix as M, type Numeric as N, isCollection as O, type ParseOptions as P, isComplex as Q, type Range as R, type ScalarBinaryOp as S, type TypeConverters as T, Unit as U, isDate as V, isDenseMatrix as W, isFraction as X, isFunction as Y, isIndex as Z, isMap as _, type UnitInstance as a, isNull as a0, isNumber as a1, isObject as a2, isRange as a3, isRegExp as a4, isSparseMatrix as a5, isString as a6, isUndefined as a7, typeOf as a8, type UnitConstructor as b, type UnitDependencies as c, type BigNumber as d, type BigNumberConstructor as e, type BigNumberValue as f, type ComplexConstructor as g, type ComplexValue as h, isUnit as i, type ConverterFn as j, type CreateUnitDefObject as k, type CreateUnitOptions as l, type Fraction as m, type FractionConstructor as n, type FractionValue as o, type IndexDimension as p, type PrefixDef as q, type PrefixTable as r, type ScalarUnaryOp as s, type SparseMatrix as t, type SubtractScalar as u, type Unit$1 as v, type UnitComponent as w, type UnitConfig as x, type UnitDef as y, type UnitFormatOptions as z };