Type Aliases Auto Numeric Event Formatted Auto Numeric Event Initialized Auto Numeric Event Raw Value Modified Auto Numeric Event Success Or Error Type Parameters Caret Position Option Caret Position Option: "start" | "end" | "decimalLeft" | "decimalRight" | "doNoForceCaretPosition"
Currency Symbol Placement Option Currency Symbol Placement Option: "p" | "s"
Digital Group Spacing Option Digital Group Spacing Option: "2" | "2t" | "2s" | "3" | "4"
Empty Input Behavior Option Empty Input Behavior Option: "null" | "focus" | "press" | "always" | "min" | "max" | "zero" | number | string
Get Value Callback Get
Value
Callback
< T > : ( ( value
: T , instance
: export= ) => void ) Type Parameters Type declaration ( value: T , instance: export= ) : void Leading Zero Option Leading Zero Option: "allow" | "deny" | "keep"
Negative Brackets Type On Blur Option Negative Brackets Type On Blur Option: "(,)" | "[,]" | "<,>" | "{,}" | "〈,〉" | "「,」" | "⸤,⸥" | "⟦,⟧" | "‹,›" | "«,»"
Negative Positive Sign Placement Option Negative Positive Sign Placement Option: "p" | "s" | "l" | "r" | null
On Invalid Paste Option On Invalid Paste Option: "error" | "ignore" | "clamp" | "truncate" | "replace"
Output Format Option Output Format Option: "string" | "number" | "." | "-." | "," | "-," | ".-" | ",-" | null
Override Min Max Limits Option Override Min Max Limits Option: "ceiling" | "floor" | "ignore" | "invalid" | null
Rounding Method Option Rounding Method Option: "S" | "A" | "s" | "a" | "B" | "U" | "D" | "C" | "F" | "N05" | "CHF" | "U05" | "D05"
Serialize Spaces Option Serialize Spaces Option: "+" | "%20"
Value Or Callback Value
Or
Callback
< T > : T | ( ( instance
: export= , key
: string ) => T ) Type Parameters
Note that ES6 modules cannot directly export class objects. This file should be imported using the CommonJS-style: import AutoNumeric = require('autonumeric');
Alternatively, if --allowSyntheticDefaultImports or --esModuleInterop is turned on, this file can also be imported as a default import: import AutoNumeric from 'autonumeric';
Refer to the TypeScript documentation at https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require to understand common workarounds for this limitation of ES6 modules.