@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
21 lines (18 loc) • 1.33 kB
JavaScript
import { BIGINT_STRING_GET_DEFAULT_STRING_FORMAT_PROPERTIES_API_UTILITY_CONSTANT } from '../../../constant/utility/api/get-default-string-format-properties/bigint-string/constant.js';
import '../../../constant/utility/api/get-default-string-format-properties/bigint-string/sign/default.constant.js';
import '../../../constant/utility/api/get-default-string-format-properties/bigint-string/sign/properties.constant.js';
/**
* Applies bigint string-specific options to default string format properties.
* @param {TApiPropertyDefaultStringFormatProperties} properties - Base properties cloned from defaults.
* @param {TApiGetDefaultStringFormatPropertiesBigIntStringOptions | undefined} options - Bigint string-specific options.
* @returns {TApiPropertyDefaultStringFormatProperties} Properties adjusted for bigint string options.
*/
function ApplyBigIntStringGetDefaultStringFormatPropertiesOptions(properties, options) {
const sign = options?.sign ?? BIGINT_STRING_GET_DEFAULT_STRING_FORMAT_PROPERTIES_API_UTILITY_CONSTANT.DEFAULT_SIGN;
return {
...properties,
...BIGINT_STRING_GET_DEFAULT_STRING_FORMAT_PROPERTIES_API_UTILITY_CONSTANT.SIGN_PROPERTIES[sign],
};
}
export { ApplyBigIntStringGetDefaultStringFormatPropertiesOptions };
//# sourceMappingURL=bigint-string-apply-options.utility.js.map