Skip to content

Commit ed75672

Browse files
committed
style: 💄 run formatter
1 parent 730d03d commit ed75672

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

src/value/ObjValue.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,11 @@ export class ObjValue<T extends classes.ObjType<any>> extends Value<T> implement
6767
return this.field(t.prop(key, type), data);
6868
}
6969

70-
public set<K extends string, V extends classes.Type>(
71-
key: K,
72-
value: Value<V>,
73-
) {
70+
public set<K extends string, V extends classes.Type>(key: K, value: Value<V>) {
7471
return this.add(key, value.type, value.data);
7572
}
7673

77-
public merge<O extends ObjValue<any>>(
78-
obj: O,
79-
): ObjValue<classes.ObjType<[...UnObjType<T>, ...UnObjType<O['type']>]>> {
74+
public merge<O extends ObjValue<any>>(obj: O): ObjValue<classes.ObjType<[...UnObjType<T>, ...UnObjType<O['type']>]>> {
8075
Object.assign(this.data as object, obj.data);
8176
const type = this.type;
8277
const system = type.system;

src/value/__tests__/ObjValue.spec.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,13 @@ describe('.set()', () => {
8181
t.str.title('User ID').description('ID of the user to retrieve').getSchema(),
8282
);
8383
expect(router.get('getUser').type.res.getSchema()).toEqual(
84-
t.object({
85-
id: t.str,
86-
name: t.str.title('User full name').min(1).max(32),
87-
friends: t.fn.input(t.str).out(t.str.title('Friend name')),
88-
}).getSchema(),
84+
t
85+
.object({
86+
id: t.str,
87+
name: t.str.title('User full name').min(1).max(32),
88+
friends: t.fn.input(t.str).out(t.str.title('Friend name')),
89+
})
90+
.getSchema(),
8991
);
9092
expect(router.get('echo').type.req.getSchema()).toEqual(t.any.getSchema());
9193
});

0 commit comments

Comments
 (0)