@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.
9 lines (8 loc) • 365 B
TypeScript
/**
* A type for casting a property descriptor to a getter descriptor.\
* Cast to this only after checking `typeof propertyDescriptor.get === 'function`
* @template [T=unknown] The type of the property.
* @since 4.0.0
*/
export type GetterDescriptor<T = unknown> = Omit<TypedPropertyDescriptor<T>, 'get'>
& Required<Pick<TypedPropertyDescriptor<T>, 'get'>>;