Skip to content

Commit

Permalink
fix: typing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andykais committed Jul 8, 2024
1 parent fd7507b commit af4e612
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ const WithStaticSchema =
<T extends SchemaInputGeneric>(table_name: string, schema_input: T) => {
return class IncludingStaticSchema extends base {
static schema_types: InferTypes<T>
static schema = schema(table_name, schema_input)
static params = IncludingStaticSchema.schema.params
static result = IncludingStaticSchema.schema.result
}
Expand Down
1 change: 1 addition & 0 deletions src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export type InferTypes<T extends SchemaInputGeneric> = {
}

export interface SchemaOutput<T extends SchemaInputGeneric> {
schema: T
params: SchemaParams<T>
result: SchemaResult<T>
}
Expand Down

0 comments on commit af4e612

Please sign in to comment.