(value: string | string[] | undefined)
| 15 | const FEED_PATHS = ['/popular', '/upvoted', '/posts', '/following', '/feeds']; |
| 16 | |
| 17 | const firstValue = (value: string | string[] | undefined): string | undefined => |
| 18 | Array.isArray(value) ? value[0] : value; |
| 19 | |
| 20 | interface PatchyContextInput { |
| 21 | // The route path without the query, e.g. /tags/rust. |