-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
45 lines (43 loc) · 1.72 KB
/
index.d.ts
File metadata and controls
45 lines (43 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* Declaration file for the Enterprise Number Classification SDK.
* Engineered for maximum type safety and corporate compliance.
*/
declare module "enterprise-number-classification-sdk" {
/**
* Evaluates the parity state of a numeric node to determine evenness.
* Utilizes a dual-path execution strategy (Recursive + String-Parsing Fallback).
* * @param number The numeric entity to be classified.
* @param options The enterprise configuration manifest.
* @returns A boolean representing the evenness classification.
*/
export function checkEven(
number: number | string | any,
options?: {
/** Suppress non-numeric errors and return falseValue. */
throwOnNonNumber?: boolean
/** Suppress non-integer errors and return falseValue. */
throwOnNonInteger?: boolean
/** Suppress non-finite errors and return falseValue. */
throwOnNonFinite?: boolean
/** Suppress NaN-state errors and return falseValue. */
throwOnNaN?: boolean
/** * Permits the intake of stringified numeric nodes.
* Note: Enabling this triggers intrinsic casting logic.
*/
allowNumberStrings?: boolean
/** Activates chromatic telemetry emission to the enterprise console. */
enableDebug?: boolean
}
): boolean
/**
* Evaluates the parity state of a numeric node to determine oddity.
* Utilizes a dual-path execution strategy (Recursive + String-Parsing Fallback).
* * @param number The numeric entity to be classified.
* @param options The enterprise configuration manifest.
* @returns A boolean representing the oddity classification.
*/
export function checkOdd(
number: number | string | any,
options?: ClassificationOptions
): boolean
}