Type narrowingを実現するためのクエリパラメータ
demo code.
https://codesandbox.io/p/sandbox/some-fzhd7i?file=%2Fsrc%2Fhooks%2FusePathMatcher%2FusePathMatcher.ts%3A1%2C1
demo site.
https://fzhd7i-3000.csb.app/
demo code.
https://codesandbox.io/p/sandbox/some-fzhd7i?file=%2Fsrc%2Fhooks%2FusePathMatcher%2FusePathMatcher.ts%3A1%2C1
demo site.
https://fzhd7i-3000.csb.app/