Skip to content

FormatNumberOptions — @gj-kit/format

A public interface from @gj-kit/format. The signature below is taken directly from the 0.1.1 release declaration.

import { FormatNumberOptions } from '@gj-kit/format';
interface FormatNumberOptions<TFallback = string> {
/** Required grouping locale; `'device'` opts into the runtime default. */
readonly locale: FormatLocale;
/** Default: Intl's own default (max 3). */
readonly maximumFractionDigits?: number | undefined;
readonly minimumFractionDigits?: number | undefined;
/** Rendered for null/undefined/non-finite input. Default `'-'`. */
readonly fallback?: TFallback | undefined;
}

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/format
  • Version: 0.1.1
  • Public entry: .
  • Source: GitHub