UNPKG

create-nova-expo-template

Version:

A template for creating a new React Native app using Expo and TypeScript, with a focus on performance and best practices.

20 lines (17 loc) 410 B
/* eslint-disable @typescript-eslint/no-explicit-any */ export default function getSerializedQueryArgs({ endpointName, queryArgs, }: { endpointName: string; queryArgs: any; }) { let result = endpointName; Object.keys(queryArgs || {}).forEach((key) => { if (key === "page") { return; } result = `${result}-(${key}=${queryArgs[key]})`; }); return result; }