Skip to content

Commit

Permalink
style: format source code
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed May 22, 2023
1 parent f59ef9e commit 92f0de6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion commands/Migration/Rollback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default class Migrate extends MigrationsBase {
connectionName: this.connection,
batch: this.batch,
dryRun: this.dryRun,
disableLocks: this.disableLocks
disableLocks: this.disableLocks,
})
}

Expand Down
6 changes: 3 additions & 3 deletions src/Bindings/Validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class DbRowCheck {
constructor(
private ruleName: 'exists' | 'unique',
private database: DatabaseContract,
private helpers: typeof validatorStatic['helpers']
private helpers: (typeof validatorStatic)['helpers']
) {}

/**
Expand Down Expand Up @@ -224,7 +224,7 @@ export function extendValidator(
*/
const existsChecker = new DbRowCheck('exists', database, validator.helpers)

validator.rule<ReturnType<typeof existsChecker['compile']>>(
validator.rule<ReturnType<(typeof existsChecker)['compile']>>(
'exists',
async (value, compiledOptions, options) => {
try {
Expand Down Expand Up @@ -252,7 +252,7 @@ export function extendValidator(
*/
const uniqueChecker = new DbRowCheck('unique', database, validator.helpers)

validator.rule<ReturnType<typeof existsChecker['compile']>>(
validator.rule<ReturnType<(typeof existsChecker)['compile']>>(
'unique',
async (value, compiledOptions, options) => {
try {
Expand Down

0 comments on commit 92f0de6

Please sign in to comment.