UNPKG

aelf-sdk-lys1988

Version:

aelf-sdk js library

17 lines (12 loc) 411 B
var f = require('./formatters.js'); var BaseType = require('./base'); var TypeString = function () { this._inputFormatter = f.formatInputString; this._outputFormatter = f.formatOutputString; }; TypeString.prototype = new BaseType({}); TypeString.prototype.constructor = TypeString; TypeString.prototype.isType = function (name) { return !!name.match(/^string$/); }; module.exports = TypeString;