Skip to content

Commit

Permalink
Removes unused references in Default typing
Browse files Browse the repository at this point in the history
  • Loading branch information
3commascapital committed Sep 12, 2024
1 parent 252054c commit 9e317aa
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/core/src/schema/columns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,10 @@ import type {

type Default<column extends BuilderScalarColumn> = (
val: DefaultValue<column[" scalar"]>,
) => BuilderScalarColumn<
column[" scalar"],
column[" optional"],
column[" list"]
>;
) => BuilderScalarColumn;

const defaultTo =
<column extends BuilderScalarColumn>(col: column): Default<column> =>
// @ts-expect-error
(val: DefaultValue<column[" scalar"]>) => {
const scalar = col[" scalar"];
let v = val as string;
Expand Down

0 comments on commit 9e317aa

Please sign in to comment.