Skip to content

InfiniteNumberIO

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/tandem/blob/main/js/types/InfiniteNumberIO.ts for the most up-to-date information.

Overview

PhET-iO Type for JS's built-in number type, but adds explicit support for positive and negative infinity. Typical use cases should use NumberIO, but if you have a case that must support infinities, please use this instead.

@author Sam Reid (PhET Interactive Simulations) @author Michael Kauzmann (PhET Interactive Simulations)

Type InfiniteNumberStateObject

import type { InfiniteNumberStateObject } from 'scenerystack/tandem';

number | "POSITIVE_INFINITY" | "NEGATIVE_INFINITY"

Source Code

See the source for InfiniteNumberIO.ts in the tandem repository.