quartz/wallet/node_modules/ts-enum-util/dist/es/mapEnumValue.js
2022-03-04 20:05:23 +08:00

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