We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
const
1 parent b45ab20 commit 0a1e65fCopy full SHA for 0a1e65f
src/predicate/factory/shape.ts
@@ -38,7 +38,7 @@ export type InferTypeFromShape<Shape extends ObjectShapeRecord<object>> = {
38
[Property in keyof Shape]: InferTypeFromShapeValue<Shape[Property]>;
39
};
40
41
-export const shape = <Type extends object, const Shape extends ObjectShapeRecord<Type> = ObjectShapeRecord<Type>>(
+export const shape = <Type extends object, Shape extends ObjectShapeRecord<Type> = ObjectShapeRecord<Type>>(
42
objectShape: Shape,
43
): TypePredicateFn<Pretty<Type & InferTypeFromShape<Shape>>> => {
44
const entries: [key: string | symbol, predicate: TypePredicateFn<unknown>][] = Reflect.ownKeys(objectShape).map(
0 commit comments