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