realm-js/lib/types.js

23 lines
329 B
JavaScript
Raw Normal View History

'use strict';
2015-10-06 19:36:56 +00:00
let types = {};
[
'BOOL',
'INT',
'FLOAT',
'DOUBLE',
'STRING',
'DATE',
'DATA',
'OBJECT',
'LIST',
].forEach(function(type) {
Object.defineProperty(types, type, {
value: 'PropTypes' + type,
enumerable: true,
});
});
module.exports = Object.freeze(types);