Skip to content

Commit 7130fcd

Browse files
committed
style: 💄 fix linter issues
1 parent d7ce3b0 commit 7130fcd

File tree

17 files changed

+455
-288
lines changed

17 files changed

+455
-288
lines changed

src/json-schema/__tests__/alias.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ test('can export recursive schema', () => {
66
const {t} = system;
77
const post = system.alias('Post', t.Object(t.prop('id', t.str), t.propOpt('author', t.Ref('User'))));
88
system.alias('Stream', t.Object(t.prop('id', t.str), t.prop('posts', t.Array(t.Ref('Post')))));
9-
system.alias(
10-
'User',
11-
t.Object(t.prop('id', t.str), t.prop('name', t.str), t.prop('following', t.Ref('Stream'))),
12-
);
9+
system.alias('User', t.Object(t.prop('id', t.str), t.prop('name', t.str), t.prop('following', t.Ref('Stream'))));
1310
const schema = aliasToJsonSchema(post);
1411
expect(schema.$ref).toBe('#/$defs/Post');
1512
expect(typeof schema.$defs?.Post).toBe('object');

src/json-schema/converter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {TypeExportContext} from '../type/classes/ModuleType/TypeExportContext';
2-
import {AliasType} from '../type';
2+
import type {AliasType} from '../type';
33
import type {ObjType} from '../type/classes/ObjType';
44
import type {AbsType} from '../type/classes/AbsType';
55
import type {AnyType} from '../type/classes/AnyType';

0 commit comments

Comments
 (0)