Skip to content

Commit 60aa948

Browse files
committed
style: 💄 run Prettier
1 parent 8f78465 commit 60aa948

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

src/json-type-value/Value.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export class Value<T extends Type = Type> {
66
public type: T,
77
public data: ResolveType<T>,
88
) {}
9-
9+
1010
public encode(codec: JsonValueCodec): void {
1111
const value = this.data;
1212
const type = this.type;

src/json-type/system/TypeSystem.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ export class TypeSystem implements Printable {
6060

6161
public importTypes<A extends TypeMap>(
6262
types: A,
63-
): {readonly [K in keyof A]: TypeAlias<K extends string ? K : never, /** @todo Replace `any` by inferred type here. */ any>} {
63+
): {
64+
readonly [K in keyof A]: TypeAlias<
65+
K extends string ? K : never,
66+
/** @todo Replace `any` by inferred type here. */ any
67+
>;
68+
} {
6469
const result = {} as any;
6570
for (const id in types) result[id] = this.alias(id, this.t.import(types[id]));
6671
return result;

src/json-type/type/TypeBuilder.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,13 @@ export class TypeBuilder {
198198
case 'ref':
199199
return this.Ref(node.ref).options(node);
200200
case 'fn':
201-
return this.Function(this.import(node.req as schema.Schema), this.import(node.res as schema.Schema)).options(node);
201+
return this.Function(this.import(node.req as schema.Schema), this.import(node.res as schema.Schema)).options(
202+
node,
203+
);
202204
case 'fn$':
203-
return this.Function$(this.import(node.req as schema.Schema), this.import(node.res as schema.Schema)).options(node);
205+
return this.Function$(this.import(node.req as schema.Schema), this.import(node.res as schema.Schema)).options(
206+
node,
207+
);
204208
}
205209
throw new Error(`UNKNOWN_NODE [${node.kind}]`);
206210
}

0 commit comments

Comments
 (0)