| 1834 | /** |
| 1835 | * AST node matching any `number` value (including `NaN`, `Infinity`, |
| 1836 | * `-Infinity`). |
| 1837 | * |
| 1838 | * **Details** |
| 1839 | * |
| 1840 | * Default JSON serialization: |
| 1841 | * |
| 1842 | * - Finite numbers are serialized as JSON numbers. |
| 1843 | * - `Infinity`, `-Infinity`, and `NaN` are serialized as JSON strings. |
| 1844 | * |
| 1845 | * If the node has an `isFinite` or `isInt` check, the string fallback is |
| 1846 | * skipped since non-finite values cannot occur. |
| 1847 | * |
| 1848 | * @see {@link number} |
| 1849 | * @see {@link isNumber} |
| 1850 | * @category models |
| 1851 | * @since 4.0.0 |
| 1852 | */ |
| 1853 | export interface Number extends ASTNode { |
| 1854 | readonly _tag: "Number" |
| 1855 | /** @internal */ |
| 1856 | |
| 1857 | getParser(): SchemaParser.Parser |
| 1858 | /** @internal */ |
| 1859 | |
| 1860 | matchKey(s: string, options: ParseOptions): number | undefined |
| 1861 | /** @internal */ |
| 1862 | |
| 1863 | matchPart(s: string, options: ParseOptions): number | undefined |
| 1864 | /** @internal */ |
| 1865 | |