@danielsimonjr/mathts-core 0.5.0 → 0.7.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.
- package/dist/{chunk-BDNTTHO4.js → chunk-AMOHH5MP.js} +2298 -2297
- package/dist/{index-DpOizJsa.d.ts → index-zKEDY9aj.d.ts} +29 -1
- package/dist/index.d.ts +784 -2
- package/dist/index.js +415 -41
- package/dist/internal.d.ts +2 -30
- package/dist/internal.js +3 -3
- package/package.json +59 -59
|
@@ -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 {
|
|
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 };
|