Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class FluentType
Abstract
import { FluentType } from "https://deno.land/x/fluent@0.0.1/bundle/types.ts";

The FluentType class is the base of Fluent's type system.

Fluent types wrap JavaScript values and store additional configuration for them, which can then be used in the toString method together with a proper Intl formatter.

Constructors

new
FluentType(value: T)

Create a FluentType instance.

Properties

value: T

The wrapped native value.

Methods

abstract
toString(scope: Scope): string

Format this instance of FluentType to a string.

Formatted values are suitable for use outside of the FluentBundle. This method can use Intl formatters available through the scope argument.

Unwrap the raw value stored by this FluentType.