Skip to content

Instantly share code, notes, and snippets.

View joeshub's full-sized avatar
🔮

Joe Seifi joeshub

🔮
View GitHub Profile
@joeshub
joeshub / _scaffoldGetProp.ts
Created April 22, 2024 13:52 — forked from regevbr/_scaffoldGetProp.ts
scaffold type safe get function up to a desired order
'use strict';
// tslint:disable:max-line-length
// based on https://www.reddit.com/r/typescript/comments/aynx0o/safe_deep_property_access_in_typescript
import * as fs from 'fs';
const method = 'getProp';
const TAB = ` `;