Skip to content

Commit 1718c94

Browse files
committed
fix: flow Type.assert signature
1 parent 468de8c commit 1718c94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/Type.js.flow

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ declare class Type<T> {
2323

2424
+acceptsSomeCompositeTypes: boolean;
2525

26-
assert<V: T>(input: any, prefix?: string, path?: IdentifierPath): V;
26+
assert(input: any, prefix?: string, path?: IdentifierPath): T;
2727

2828
validate(input: any, prefix?: string, path?: IdentifierPath): Validation;
2929

0 commit comments

Comments
 (0)