style: apply prettier

This commit is contained in:
d-yokoi 2019-03-03 23:07:49 +09:00
parent c74ab67ccf
commit 03632f1507
No known key found for this signature in database
GPG key ID: 49EAF81BC6A0D19A
24 changed files with 2321 additions and 1958 deletions
ts_src/templates

View file

@ -1,17 +1,16 @@
// OP_RETURN {data}
import * as bscript from '../script'
const OPS = bscript.OPS
import * as bscript from '../script';
const OPS = bscript.OPS;
export function check (script: Buffer | Array<number | Buffer>): boolean {
const buffer = bscript.compile(script)
export function check(script: Buffer | Array<number | Buffer>): boolean {
const buffer = bscript.compile(script);
return buffer.length > 1 &&
buffer[0] === OPS.OP_RETURN
return buffer.length > 1 && buffer[0] === OPS.OP_RETURN;
}
check.toJSON = function () { return 'null data output' }
check.toJSON = function() {
return 'null data output';
};
const output = { check }
const output = { check };
export {
output
}
export { output };