import { AnyId , Value } from './core' ; import { toBuffer } from './utils' ; declare module './core' { interface AnyId { fixed ( n ) : AnyId ; } } class FixedValue extends Value { constructor ( owner , private v ) { super ( owner ) ; } value ( ) { return this . returnValue ( this . v ) ; } } export class Fixed { fixed ( this , v ) { this . addValue ( new FixedValue ( this , toBuffer ( v ) ) ) ; return this ; } }