You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module Query: {
type t
type case = Array(array<string>) | String(string)
let classify: t => case
}
= {
type t
type case = Array(array<string>) | String(string)
external unsafeToArray: t => array<string> = "%identity"
external unsafeToString: t => string = "%identity"
let classify = (value: t) => {
if %raw(`function (a) { return a instanceof Array}`)(value) {
Array(unsafeToArray(value))
} else {
String(unsafeToString(value))
}
}
}
How should one use catch all routes in router?
https://nextjs.org/docs/routing/dynamic-routes#catch-all-routes
I think there's no way of doing this zero cost, right?
we should use an abstract type and then convert that type to an internal type like:
The text was updated successfully, but these errors were encountered: