-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix show as verified the unverifiable places that are visited (#145)
* fix show verified unverifiable * fix
- Loading branch information
1 parent
76f6fcf
commit 2cbe1c9
Showing
5 changed files
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { InferSelectModel } from 'drizzle-orm' | ||
import { verificationRequirements } from '../schema' | ||
|
||
export type VerificationRequirements = InferSelectModel< | ||
typeof verificationRequirements | ||
> | ||
|
||
export function isVerificationRequired<T extends VerificationRequirements>( | ||
verificationRequirements: T | null | ||
): verificationRequirements is T { | ||
if (!verificationRequirements) return false | ||
|
||
return verificationRequirements.isLocationRequired | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters