File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments