Skip to content

Instantly share code, notes, and snippets.

View SandeepK1729's full-sized avatar
💭
Updating ...

Konda Sandeep SandeepK1729

💭
Updating ...
View GitHub Profile
@SandeepK1729
SandeepK1729 / nested-object-property-methods.ts
Last active October 23, 2025 18:48
property methods for nested objects with type safety
/**
* Utility methods for nested object
* read and write operations on objects.
*/
/**
* Path - A recursive type to determine the path of nested properties in an object.
* @template T - The object type to extract paths from.
* @returns A union type of string paths representing the nested properties.
* @example
@SandeepK1729
SandeepK1729 / generics.ts
Last active October 23, 2025 18:49
Typescript utility with generics
interface Person {
name: string;
age: number;
}
const person: Person = {
name: "Sam",
age: 30
};
@SandeepK1729
SandeepK1729 / dot-utility.ts
Created June 7, 2025 10:26
Typescript Utility
/**
* Dot Notation Type Utility
*
* This utility type converts an object type into a dot notation string type.
* It recursively traverses the object properties and constructs a string
* representation of the paths to each property, using dot notation.
*
* @example
* type Example = {
* user: {