• Rikudou_SageA
      link
      16 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.