Skip to content

Instantly share code, notes, and snippets.

View thataustin's full-sized avatar

Austin Brown thataustin

  • San Franscisco, CA
View GitHub Profile
@thataustin
thataustin / generateFakeSchema.ts
Last active November 17, 2024 03:12
Create fakeSchema.ts file from your drizzle schema.ts file to automatically get objects with faker data
import ts from 'typescript'
import { readFile, stat, unlink, writeFile } from 'fs/promises'
import * as path from 'path'
import { faker } from '@faker-js/faker'
interface Column {
columnType: string
default?: any
fakeMethod?: string // Optional custom faker method
}
@adoublef
adoublef / jsx.d.ts
Last active May 15, 2024 11:29
JSX for HTMX
type Booleanish = boolean | "true" | "false";
type CrossOrigin = "anonymous" | "use-credentials" | "" | undefined;
// export = JSX;
// export as namespace JSX;
declare namespace JSX {
interface HTMLProps<T> extends AllHTMLAttributes<T> {}
// type DetailedHTMLProps<E extends HTMLAttributes<T>, T> = E;