Skip to content

Instantly share code, notes, and snippets.

View marklawlor's full-sized avatar
💯

Mark Lawlor marklawlor

💯
View GitHub Profile
import type { PressableProps } from "react-native";
import { View, Text, Pressable } from "react-native";
import type { ReactNode } from "react";
import React from "react";
import clsx from 'clsx';
interface Props extends PressableProps {
variant?: "dark" | "light" | "filled" | "outline" | "ghost";
children: ReactNode;
}
@marklawlor
marklawlor / kysely-types.ts
Last active August 3, 2023 19:29
Prisma/Kysely database
/* eslint-disable @typescript-eslint/ban-types */
/* eslint-disable @typescript-eslint/no-explicit-any */
import type { Prisma, PrismaClient, PrismaPromise } from "@prisma/client";
import type { CamelCase, Merge, SnakeCase, PascalCase } from "type-fest";
import {
ColumnType,
DummyDriver,
Generated,
Kysely,
MysqlAdapter,
/* eslint-disable @typescript-eslint/ban-types */
/* eslint-disable @typescript-eslint/no-explicit-any */
import type { Prisma, PrismaClient, PrismaPromise } from "@prisma/client";
import type { CamelCase, Merge, SnakeCase, PascalCase } from "type-fest";
import { ColumnType } from "kysely";
export type KyselyOverrides = {
[Model in Prisma.ModelName]?: {
[P in keyof Table<Model>]?: ColumnType<any>;
};