Skip to content

Commit

Permalink
Fixed property key attribution in generic createSimpleSchema<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
jglanz committed Oct 11, 2024
1 parent f8b9196 commit c0c1011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/createSimpleSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Props, ModelSchema } from "./types";
* @param props property mapping,
* @returns model schema
*/
export default function createSimpleSchema<T extends object>(props: Props): ModelSchema<T> {
export default function createSimpleSchema<T extends object>(props: Props<T>): ModelSchema<T> {
return {
factory: function () {
return {} as any;
Expand Down

0 comments on commit c0c1011

Please sign in to comment.