Xo is experimental. The source code is not public yet; it will be soon. Read the release notes
Menu · XO0155

Docs

XO0155: unknown duration unit, fractional or non decimal duration

error · reported by the lexer

A duration literal is a decimal integer followed by one of ns, us, ms, s, m, or h: 5s, 250ms. Any other suffix on a number (5sec, or 0xg, where g is read as a suffix) is reported here, and so are fractional or non decimal durations such as 1.5s or 0x10s. Write a fractional duration in a smaller unit: 1500ms. See core 1.6.

Example

const TIMEOUT = 1.5s

Fix

const TIMEOUT = 1500ms

Run xo explain XO0155 for this text in a terminal, or see section 10.6 of the specification.