Skip to content

Possibly a bug with string.numericΒ #1448

Closed

Description

@olehrez

Report a bug

πŸ”Ž Search Terms

scientific notation, exponential notation

🧩 Context

  • ArkType version: 2.1.20
  • TypeScript version (5.1+): 5.8.3

πŸ§‘β€πŸ’» Repro

Playground Link: https://arktype.io/playground?code=import%2520%257B%2520type%2520%257D%2520from%2520%2522arktype%2522%250A%250Aconst%2520Thing%2520%253D%2520type%28%27string.numeric%27%29%250A%250Aconst%2520out%2520%253D%2520Thing%28%275.7153e-10%27%29%250A

import { type } from "arktype"

const Thing = type('string.numeric')

const out = Thing('5.7153e-10')
// must be a well-formed numeric string (was "5.7153e-10")

Hello, maybe the 'string.numeric' is not a good fit for my case and I need to use some other string.* or number.*

Activity

  1. added
    bug
    on May 12, 2025
  2. ssalbdivad commented on Nov 18, 2026

    @ssalbdivad
    Member

    Fixed in 3.0.0-beta.0 (#1728). Try it with npm i arktype@next.

  3. moved this from To do to Done (merged or closed) in arktypeioon Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

  • Status
    Done (merged or closed)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions