MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / parsePage

Function parsePage

apps/web/services/ssr/channels.ts:197–203  ·  view source on GitHub ↗
(page: string)

Source from the content-addressed store, hash-verified

195}
196
197function parsePage(page: string): number | undefined {
198 try {
199 return z.coerce.number().parse(page);
200 } catch (error) {
201 return undefined;
202 }
203}
204
205export async function getChannelsSettingsServerSideProps(
206 context: GetServerSidePropsContext,

Callers 1

getThreadsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected