Skip to content

Instantly share code, notes, and snippets.

View pierre-dekode's full-sized avatar
🚀

Pierre Saïkali pierre-dekode

🚀
View GitHub Profile
@t3dotgg
t3dotgg / try-catch.ts
Last active November 5, 2026 16:28
Theo's preferred way of handling try/catch in TypeScript
// Types for the result object with discriminated union
type Success<T> = {
data: T;
error: null;
};
type Failure<E> = {
data: null;
error: E;
};
@adrienne
adrienne / mullenweg-wpe.md
Last active October 21, 2026 14:43
The Mullenweg/WPE Thing