Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
16 lines
439 B
Plaintext
16 lines
439 B
Plaintext
import { color } from '../color/index.mjs';
|
|
import { complex } from '../complex/index.mjs';
|
|
import { dimensionValueTypes } from '../dimensions.mjs';
|
|
import { testValueType } from '../test.mjs';
|
|
|
|
/**
|
|
* A list of all ValueTypes
|
|
*/
|
|
const valueTypes = [...dimensionValueTypes, color, complex];
|
|
/**
|
|
* Tests a value against the list of ValueTypes
|
|
*/
|
|
const findValueType = (v) => valueTypes.find(testValueType(v));
|
|
|
|
export { findValueType };
|