Files

22 lines
443 B
TypeScript

/**
* @packageDocumentation
* @module std
*/
/**
* Pointer referencing value.
*
* @author Jeongho Nam - https://github.com/samchon
*/
export interface IPointer<T> {
/**
* Reference of the value.
*/
value: T;
}
export declare namespace IPointer {
/**
* Inference of value type.
*/
type ValueType<Pointer extends IPointer<any>> = Pointer extends IPointer<infer T> ? T : unknown;
}