Fix lint types.ts
This commit is contained in:
parent
08c4d6ac7d
commit
7fb859b1f7
2 changed files with 8 additions and 8 deletions
|
@ -10,7 +10,7 @@ function BIP32Path(value) {
|
||||||
return typeforce.String(value) && !!value.match(/^(m\/)?(\d+'?\/)*\d+'?$/);
|
return typeforce.String(value) && !!value.match(/^(m\/)?(\d+'?\/)*\d+'?$/);
|
||||||
}
|
}
|
||||||
exports.BIP32Path = BIP32Path;
|
exports.BIP32Path = BIP32Path;
|
||||||
BIP32Path.toJSON = function () {
|
BIP32Path.toJSON = () => {
|
||||||
return 'BIP32 derivation path';
|
return 'BIP32 derivation path';
|
||||||
};
|
};
|
||||||
const SATOSHI_MAX = 21 * 1e14;
|
const SATOSHI_MAX = 21 * 1e14;
|
||||||
|
@ -34,10 +34,10 @@ exports.Network = typeforce.compile({
|
||||||
exports.Buffer256bit = typeforce.BufferN(32);
|
exports.Buffer256bit = typeforce.BufferN(32);
|
||||||
exports.Hash160bit = typeforce.BufferN(20);
|
exports.Hash160bit = typeforce.BufferN(20);
|
||||||
exports.Hash256bit = typeforce.BufferN(32);
|
exports.Hash256bit = typeforce.BufferN(32);
|
||||||
exports.Number = typeforce.Number;
|
exports.Number = typeforce.Number; // tslint:disable-line variable-name
|
||||||
exports.Array = typeforce.Array;
|
exports.Array = typeforce.Array;
|
||||||
exports.Boolean = typeforce.Boolean;
|
exports.Boolean = typeforce.Boolean; // tslint:disable-line variable-name
|
||||||
exports.String = typeforce.String;
|
exports.String = typeforce.String; // tslint:disable-line variable-name
|
||||||
exports.Buffer = typeforce.Buffer;
|
exports.Buffer = typeforce.Buffer;
|
||||||
exports.Hex = typeforce.Hex;
|
exports.Hex = typeforce.Hex;
|
||||||
exports.maybe = typeforce.maybe;
|
exports.maybe = typeforce.maybe;
|
||||||
|
|
|
@ -8,7 +8,7 @@ export function UInt31(value: number): boolean {
|
||||||
export function BIP32Path(value: string): boolean {
|
export function BIP32Path(value: string): boolean {
|
||||||
return typeforce.String(value) && !!value.match(/^(m\/)?(\d+'?\/)*\d+'?$/);
|
return typeforce.String(value) && !!value.match(/^(m\/)?(\d+'?\/)*\d+'?$/);
|
||||||
}
|
}
|
||||||
BIP32Path.toJSON = function() {
|
BIP32Path.toJSON = () => {
|
||||||
return 'BIP32 derivation path';
|
return 'BIP32 derivation path';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -35,10 +35,10 @@ export const Network = typeforce.compile({
|
||||||
export const Buffer256bit = typeforce.BufferN(32);
|
export const Buffer256bit = typeforce.BufferN(32);
|
||||||
export const Hash160bit = typeforce.BufferN(20);
|
export const Hash160bit = typeforce.BufferN(20);
|
||||||
export const Hash256bit = typeforce.BufferN(32);
|
export const Hash256bit = typeforce.BufferN(32);
|
||||||
export const Number = typeforce.Number;
|
export const Number = typeforce.Number; // tslint:disable-line variable-name
|
||||||
export const Array = typeforce.Array;
|
export const Array = typeforce.Array;
|
||||||
export const Boolean = typeforce.Boolean;
|
export const Boolean = typeforce.Boolean; // tslint:disable-line variable-name
|
||||||
export const String = typeforce.String;
|
export const String = typeforce.String; // tslint:disable-line variable-name
|
||||||
export const Buffer = typeforce.Buffer;
|
export const Buffer = typeforce.Buffer;
|
||||||
export const Hex = typeforce.Hex;
|
export const Hex = typeforce.Hex;
|
||||||
export const maybe = typeforce.maybe;
|
export const maybe = typeforce.maybe;
|
||||||
|
|
Loading…
Reference in a new issue