型安全なURL
https://speakerdeck.com/inamiy/type-safe-url-routing-in-swift-japanese
https://qiita.com/m_mitsuhide/items/68406158d35a14fa0aa2
https://www.typescriptlang.org/play?ts=4.1.0-pr-40336-8#code/C4TwDgpgBACghgJzgWwGIIPbICoWWAGzmAgB5soIAPEgOwBMBnKR4BAS1oHMA+KAXigVqdJlAAGALgAkAb04AzCAlgBfcVAD8sKJKi0IAN2UBuALAAoUJFiIUAORQRGpAMqUaEBs1YdufQV9OLg9RZndtIO5dKHcRLzFxOUVlIVUAemTaJRUAVXUtWyQ0TBw8QmIybD4AHyKHJxdcvj14YvQsXHwiEjcecwtLThIEBTgAY2gAWXZ6egIIAHdEMhg+WUsoLagACgQIAEc9WSgwO2RGVqhVABoofcuoOFoQAEo9QwxZgdVLIdoRmNJlAAEoYACuIygGws2ygXAgwHIoQSPjYwR4OzOwAAFnpsHdkLN5ksVnoZnMFst9qQTgBtGBQTj1ZCOZDOcg8AC6eiiIVUPHeUE+30sv0GFnoEHGRH2UHGGForHuEJGejBkNMfwsmE1CAAdAjgDsAETpcGMZTpSQW5QASXo6TAGFY1udrAdJrue0OdwerwE602232B31Z2KjHDLuADoGcND4fOUdtCDj2rh6XSUAAAsBGABaaiQcbAIsITAIYNbRMRlBRnEYBGNhEDav3RHghC0DtRgBWjEVO1ePxHQA
https://qiita.com/Huruikagi/items/a89293d06126abe1f53a
branded types
のよなことをやっている
関数内で正規表現を使う