Skip to content

Instantly share code, notes, and snippets.

View GrantJamesPowell's full-sized avatar
🍝
^- My code

Grant Powell GrantJamesPowell

🍝
^- My code
View GitHub Profile
import { Spread } from 'type-fest';
type AfterCallback = () => void | Promise<void>;
type BeforeCallback = (input: any) => any;
type DoneCallback = (value?: Error | void) => void;
type TestCode<T> = (
args: T & { done: (value?: Error | void) => void }
) => Promise<void> | void;
type TestCase<T> = (name: string, testCode: TestCode<T>) => void;
@GrantJamesPowell
GrantJamesPowell / select.ts
Created December 6, 2022 22:20
Typeorm Select
import { Primitive, Simplify } from 'type-fest';
import {
EntityManager,
EntityTarget,
FindOptionsOrder,
FindOptionsRelations,
FindOptionsWhere,
ObjectLiteral,
} from 'typeorm';