@halospv3/hce.shared-config
Version:
Automate commit message quality, changelogs, and CI/CD releases. Exports a semantic-release shareable configuration deserialized from this package's '.releaserc.yml'. Shared resources for .NET projects are also distributed with this package.
13 lines (11 loc) • 446 B
text/typescript
import type { ProtoOrSuperClass, WithProto } from './inheritance.js';
/**
* A nearly useless wrapper for {@link Reflect.getPrototypeOf}
* @param object An object with the internal `__proto__` property present in its type.
* @returns The `__proto__` of the `object` param.
*/
export function getPrototypeOf<
T extends WithProto<ProtoOrSuperClass>,
>(object: T): T['__proto__'] {
return Reflect.getPrototypeOf(object) as T['__proto__'];
}