@tevm/actions
Version:
A typesafe library for writing forge scripts in typescript
9 lines • 324 B
TypeScript
/**
* Helper type to get a nested property from an object
*/
export type GetPath<T, TPath extends string> = TPath extends `${infer A}.${infer Rest}` ? A extends keyof T ? {
[K in A]: GetPath<T[A], Rest>;
} : never : TPath extends keyof T ? {
[K in TPath]: T[TPath];
} : never;
//# sourceMappingURL=GetPath.d.ts.map