• Rikudou_Sage
      link
      fedilink
      25 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.