Skip to content

formatKrw — @gj-kit/format

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

import { formatKrw } from '@gj-kit/format';
/**
* Korean won. Fractions are never shown — KRW has no minor unit, so the value is
* rounded to whole won first (`1000.5` becomes `'₩1,001'`). Negative values put
* the sign before the symbol (`'-₩1,000'`), and a value that rounds to zero
* never renders a negative zero.
*/
declare function formatKrw<TFallback = string>(value: number | null | undefined, options: FormatKrwOptions<TFallback>): string | TFallback;

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