Skip to content

Commit 368f08b

Browse files
committed
fix: add Type.resolveType to flow defs
1 parent c0c7604 commit 368f08b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/types/ObjectType.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ export default class ObjectType<T extends {}> extends Type<T> {
3636
this.exact = exact
3737
properties.forEach(prop => (prop.__objectType = this))
3838
}
39-
40-
resolveObjectType(): ObjectType<T> {
41-
return this
42-
}
43-
4439
*errors(
4540
validation: Validation,
4641
path: IdentifierPath,

src/types/Type.js.flow

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ declare class Type<T> {
1313
typeName: string;
1414
+__type: T;
1515

16+
resolveType(): Type<T>;
17+
1618
errors(
1719
validation: Validation,
1820
path: IdentifierPath,

0 commit comments

Comments
 (0)