@flex-development/tutils
Version:
TypeScript utilities
16 lines (15 loc) • 484 B
text/typescript
/**
* @file Type Definitions - PathNT
* @module tutils/types/PathNT
*/
import type ObjectPlain from './object-plain.mjs';
import type PathN from './path-n.mjs';
/**
* Constructs a union type of nested and top level properties of `T`.
*
* @see https://github.com/ghoullier/awesome-template-literal-types#dot-notation-string-type-safe
*
* @template T - Object type
*/
declare type PathNT<T extends ObjectPlain> = PathN<T, keyof T> | keyof T;
export { type PathNT as default };