mwg API
    Preparing search index...

    Type Alias MwlColumnValueType<Type>

    MwlColumnValueType: Type extends "number"
        ? number
        : Type extends "boolean"
            ? boolean
            : Type extends "list"
                ? string[]
                : Type extends "map" ? Record<string, string> : string

    The TypeScript type one coerced table cell holds, mirroring coerceTableValue exactly: string stays a string, number/boolean coerce to their namesakes, list splits into a string array, and map splits into a string-to-string record. Runtime coercion stays authoritative; this type only describes its results.

    Type Parameters

    import type { MwlColumnValueType } from '@datamoc/mwg/mwl';

    const cost: MwlColumnValueType<'number'> = 3;
    const kinds: MwlColumnValueType<'list'> = ['sharp', 'shiny'];
    console.log(cost, kinds.length); // 3 2