Skip to content

Commit 8abb63f

Browse files
authored
Merge pull request #184 from webdeveric/dev
fix(shape): removed `const` from type parameter
2 parents 6d7e810 + 0a1e65f commit 8abb63f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"url": "https://github.com/webdeveric/utils/issues"
6767
},
6868
"homepage": "https://github.com/webdeveric/utils/#readme",
69-
"packageManager": "pnpm@10.6.5+sha512.cdf928fca20832cd59ec53826492b7dc25dc524d4370b6b4adbf65803d32efaa6c1c88147c0ae4e8d579a6c9eec715757b50d4fa35eea179d868eada4ed043af",
69+
"packageManager": "pnpm@10.6.5+sha256.47c8bca42b4b48534b5b1b28d573c506773937b02f68e52992fbd8269131c5c8",
7070
"scripts": {
7171
"clean": "rimraf ./dist/",
7272
"prebuild": "pnpm clean",

src/predicate/factory/shape.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export type InferTypeFromShape<Shape extends ObjectShapeRecord<object>> = {
3838
[Property in keyof Shape]: InferTypeFromShapeValue<Shape[Property]>;
3939
};
4040

41-
export const shape = <Type extends object, const Shape extends ObjectShapeRecord<Type> = ObjectShapeRecord<Type>>(
41+
export const shape = <Type extends object, Shape extends ObjectShapeRecord<Type> = ObjectShapeRecord<Type>>(
4242
objectShape: Shape,
4343
): TypePredicateFn<Pretty<Type & InferTypeFromShape<Shape>>> => {
4444
const entries: [key: string | symbol, predicate: TypePredicateFn<unknown>][] = Reflect.ownKeys(objectShape).map(

0 commit comments

Comments
 (0)