UNPKG

@halospv3/hce.shared-config

Version:

Automate commit message quality, changelogs, and CI/CD releases. Its `main` entry point is a Semantic Release config. Functions and classes are exposed for customization. An ESLint config, a Commitlint config, and addl. resources for .NET projects are als

12 lines (10 loc) 531 B
import type { GetterDescriptor } from './GetterDescriptor.d.ts'; /** * A function for inferring a {@link TypedPropertyDescriptor} is a {@link GetterDescriptor} * @param propertyDescriptor The {@link TypedPropertyDescriptor} to inspect. * @returns `true` if {@link propertyDescriptor} describes a getter. Else, `false. * @since 3.0.0 */ export function isGetterDescriptor<T>(propertyDescriptor: TypedPropertyDescriptor<T>): propertyDescriptor is GetterDescriptor<T> { return typeof propertyDescriptor.get === 'function'; };