Skip to content

Instantly share code, notes, and snippets.

View vishnuroshan's full-sized avatar
🗺️
trying to make each day an adventure

Vishnu Roshan vishnuroshan

🗺️
trying to make each day an adventure
View GitHub Profile
@vishnuroshan
vishnuroshan / resume.json
Last active June 19, 2024 06:13
JSON Resume
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Vishnu Roshan",
"label": "Senior Software Engineer at Sedin Technologies",
"picture": "",
"email": "vishnuroshan4@gmail.com",
"phone": "+91 99520 29597",
@ClickerMonkey
ClickerMonkey / types.ts
Last active June 18, 2024 17:13
Typescript Helper Types
// when T is any|unknown, Y is returned, otherwise N
type IsAnyUnknown<T, Y, N> = unknown extends T ? Y : N;
// when T is never, Y is returned, otherwise N
type IsNever<T, Y = true, N = false> = [T] extends [never] ? Y : N;
// when T is a tuple, Y is returned, otherwise N
// valid tuples = [string], [string, boolean],
// invalid tuples = [], string[], (string | number)[]