Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
📦 Worth a look #MediaProNet → TechWrit AI

Code-aware documentation engine

#AIML #AI #Documentation #TypeScript #Python #ClaudeAnthropic

https://me
Angular code in telemetry.ts. A @Service() class Telemetry with private readonly http = inject(HttpClient). Its constructor adds a window 'pagehide' listener that calls this.send('page_leave', location.pathname). Its send(event: string, data: unknown) method calls this.http.post('/api/telemetry', { event, data }, { keepalive: true }).subscribe(). Next, class CrashReporter implements ErrorHandler, with private readonly telemetry = inject(Telemetry) and handleError(error: unknown) that calls console.error(error) and this.telemetry.send('crash', String(error)). Last, export const appConfig: ApplicationConfig with providers provideHttpClient(withFetch()) and { provide: ErrorHandler, useClass: CrashReporter }. The keepalive line and the withFetch line are highlighted.
Terminal screenshot off the created map.
Angular TypeScript code in a dark editor tab named signup.ts. A comment says the schema is shared with the backend, which validates the same request. A Zod schema named Signup has email (message "Enter a valid email"), password (at least 12 characters) and confirm. Highlighted: a refine rule that checks password equals confirm, with path confirm and the message "Passwords do not match". Below, a SignupPage component with inputs bound to signup.email, signup.password and signup.confirm, a loop showing the confirm field's error messages, and a Sign up button disabled while the form is invalid. The model is a signal typed as z.infer of Signup. Highlighted at the end: form(this.model, ...) calls validateStandardSchema(f, Signup).
⚡ Just launched #CodeTrendy → Instant Receipts

Scan receipts, track GST and lodge your BAS — built for Australian sole traders

#Finance #TypeScript
Photo, no description
Day 024: Mapped types
TypeScript code in roles.ts. const ROLES = ['admin', 'editor', 'viewer'] as const; type Role = (typeof ROLES)[number]; const role = new URLSearchParams(location.search).get('role') ?? 'viewer'. A comment says "Error: 'string' is not assignable to 'admin' | 'editor' | 'viewer'" above the highlighted line ROLES.includes(role). A second comment says "Fix: widen the array for the check, narrow the value with a type guard", followed by function isRole(value: string): value is Role { return (ROLES as readonly string[]).includes(value); }, with the return line highlighted. Last: if (isRole(role)) { openDashboard(role); } with the comment "role is Role here".
Angular code in breadcrumbs.ts. First, const orderTitle: ResolveFn<string> = ({ params }) => `Order ${params['id']}`. Then export const routes: Routes with a route path 'orders', title 'Orders', and children: a route path ':id' with title: orderTitle and component: OrderDetails. Then a component with selector 'app-breadcrumbs' whose template is @for (crumb of breadcrumbs(); track $index) { <span>{{ crumb }}</span> }. In class Breadcrumbs: private readonly router = inject(Router); and readonly breadcrumbs = computed(() => { ... }). Inside the computed: this.router.currentNavigation(); with the comment "re-run when a navigation starts or ends", then const crumbs: string[] = []; let route = this.router.routerState.snapshot.root.firstChild; while (route) { if (route.title) crumbs.push(route.title); route = route.firstChild; } and return crumbs. The title: 'Orders' line, the currentNavigation line and the route.title line are highlighted.
Dark developer card titled "Content mappers run code. TS makes you say so." It shows a tsconfig.json snippet registering an example content mapper for .vue files and the command tsc --runExternalCode, plus a table: CI flag means tsc executes package code, VS Code needs workspace trust and mapper permission, and the off switch is js/ts.contentMappers.enabled. Source line cites the TypeScript 7.1 Beta post, Oct 20, 2026.
🌟 From the directory #CodeTrendy → InvoiceDeck

Generate professional PDF invoices in under 60 seconds without signing up.

#Finance #TypeScript #Nex
Photo, no description
TypeScript code: const values: ['a'] = ['a']; const alias: string[] = values; const isA = oneOfValues(values); // Predicate<'a'>; alias.push('b'); isA('b'); // 😱 — mutating the original array through an alias, then calling the guard with 'b'.
TypeScript code: const values: ['a'] = ['a']; const alias: string[] = values; const isA = oneOfValues(values); // Predicate<'a'>; alias.push('b'); isA('b'); // 😱 — mutating the original array through an alias, then calling the guard with 'b'.
Angular code in app.config.ts. @Injectable({ providedIn: 'root' }) export class FlaggedPreloading implements PreloadingStrategy, with the method preload(route: Route, load: () => Observable<unknown>) that returns route.data?.['preload'] ? load() : of(null). Then export const routes: Routes with two routes: path 'dashboard' with loadComponent: () => import('./dashboard') and data: { preload: true }, and path 'admin' with loadComponent: () => import('./admin') and no data. Last, export const appConfig: ApplicationConfig = { providers: [provideRouter(routes, withPreloading(FlaggedPreloading))] }. The return line, the data: { preload: true } line and the providers line are highlighted.
Anakin/Padme Meme

Anakin: The is-even library has 400k+ weekly downloads, and it has a dependency on the is-odd library.
Padme: LOL but those libraries are only used in joke projects, right?
Anakin: 
Padme: ...right?
Black and white photo of two hands on a white background, each holding a jigsaw puzzle piece, the two pieces almost touching but not joined. Over it, in blue monospace text, TypeScript code: type Theme = 'light' | 'dark'; const config = { theme: 'dark', fontSize: 14 } satisfies Record<string, Theme | number>; config.theme; // 'dark', not Theme | number. config.fontSize; // number, .toFixed() just works. Photo via Rawpixel (CC0).
Photo, no description
Load more