blob: 1c7c109edc445ac8893c51af7794b516dd5cefb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import * as assert from 'assert';
import { Signature } from './base';
import { Field } from './field';
export abstract class FieldValue extends Field {
constructor(signature: Signature, cacheKey: string, name: string,
field: string, public readonly value: number) {
super(signature, cacheKey, name, field);
assert.strictEqual(value, value | 0, 'FieldValue `value` must be integer');
}
}
|