Skip to content

BoxedPrimitive

Coerce a primitive type to its boxed equivalent.

Usage

type A = BoxedPrimitive<string>; // ^? String
type B = BoxedPrimitive<number>; // ^? Number

Installation

Terminal window
npx atmx add type boxed-primitive