mirror of
https://github.com/hanzoai/calendar.git
synced 2026-09-24 22:42:24 +00:00
* Add example app to test credential sync * Fixes * Changes to normalize flow of GoogleCalendar and Zoom * Add unit tests * PR Feedback * credential-sync-more-tests-and-more-apps * Fix yarn.lock * Clear cache * Add test * Fix yarn.lock * Fix 204 handling * Fix yarn.lock --------- Co-authored-by: Joe Au-Yeung <[email protected]>
15 lines
360 B
TypeScript
15 lines
360 B
TypeScript
import type Zod from "zod";
|
|
import type z from "zod";
|
|
|
|
import getAppKeysFromSlug from "./getAppKeysFromSlug";
|
|
|
|
export async function getParsedAppKeysFromSlug<T extends Zod.Schema>(
|
|
slug: string,
|
|
schema: T
|
|
): Promise<z.infer<T>> {
|
|
const appKeys = await getAppKeysFromSlug(slug);
|
|
return schema.parse(appKeys);
|
|
}
|
|
|
|
export default getParsedAppKeysFromSlug;
|