import IField from './' ; import { Int64BE } from 'int64-buffer' ; class Integer implements IField < Int64BE | string | number , Int64BE > { private _value : Int64BE = new Int64BE ( ) ; set ( value ) { if ( ! value ) { this . _value = new Int64BE ( ) ; } else if ( 'string' === typeof value ) { this . _value = new Int64BE ( value ) ; } else if ( 'number' === typeof value ) { this . _value = new Int64BE ( value ) ; } else { this . _value = value ; } } get ( ) { return this . _value ; } } export default Integer ;