mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-25 05:44:06 -06:00
13 lines
431 B
JavaScript
13 lines
431 B
JavaScript
import { EnumValueMappee, EnumValueMappeeWithNull, EnumValueMappeeWithUndefined } from "./EnumValueMappee";
|
|
export function mapEnumValue(value) {
|
|
if (value === null) {
|
|
return new EnumValueMappeeWithNull();
|
|
}
|
|
else if (value === undefined) {
|
|
return new EnumValueMappeeWithUndefined();
|
|
}
|
|
else {
|
|
return new EnumValueMappee(value);
|
|
}
|
|
}
|
|
//# sourceMappingURL=mapEnumValue.js.map
|