@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
14 lines (13 loc) • 522 B
JavaScript
//#region src/utils/reflection/isGetterDescriptor.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
*/
function isGetterDescriptor(propertyDescriptor) {
return typeof propertyDescriptor.get === "function";
}
//#endregion
export { isGetterDescriptor };
//# sourceMappingURL=isGetterDescriptor.mjs.map