Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.unstable.d.ts>Temporal.ToStringPrecisionOptions

A modern runtime for JavaScript and TypeScript.
Latest
type alias Temporal.ToStringPrecisionOptions
import { type Temporal } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.unstable.d.ts";
const { ToStringPrecisionOptions } = Temporal;

Options for outputting precision in toString() on types with seconds

definition: { fractionalSecondDigits?:
| "auto"
| 0
| 1
| 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
; smallestUnit?: SmallestUnit<
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond"
>; roundingMode?: RoundingMode; }