formatting

This commit is contained in:
Florian Dold 2016-10-11 22:58:40 +02:00
parent 2d7a3853a9
commit e35455435e

View File

@ -26,7 +26,7 @@
export namespace Checkable {
type Path = (number|string)[];
type Path = (number | string)[];
interface SchemaErrorConstructor {
new (err: string): SchemaError;
@ -220,7 +220,7 @@ export namespace Checkable {
export function Number(target: Object, propertyKey: string | symbol): void {
let chk = mkChk(target);
chk.props.push({propertyKey: propertyKey, checker: checkNumber});
chk.props.push({ propertyKey: propertyKey, checker: checkNumber });
}
@ -247,14 +247,14 @@ export namespace Checkable {
export function String(target: Object, propertyKey: string | symbol): void {
let chk = mkChk(target);
chk.props.push({propertyKey: propertyKey, checker: checkString});
chk.props.push({ propertyKey: propertyKey, checker: checkString });
}
function mkChk(target: any) {
let chk = target[chkSym];
if (!chk) {
chk = {props: []};
chk = { props: [] };
target[chkSym] = chk;
}
return chk;