• Rikudou_SageA
    link
    fedilink
    arrow-up
    1
    ·
    7 months ago

    Or just implement null as a separate type, as php does. Then you have to accept string | null (or its shorthand, ?string) if you want nulls.