Update packages/server-shared/src/type-utilities/index.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Nate Kelley 2025-07-12 16:33:53 -06:00 committed by GitHub
parent 4197cf799e
commit 4810daef9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
/*
IsEqual is a type utility that checks if two types are equal.
It's used to ensure that the a database type is equal to the a type. Like when we have a type that is a database type and we want to ensure that it's equal to the schema we have.
It's used to ensure that a database type is equal to a type. Like when we have a type that is a database type and we want to ensure that it's equal to the schema we have.
Example:
type _DBEqualityCheck = IsEqual<Organization, typeof organizations.$inferSelect>; // This will cause a compile error if Organization and organizations.$inferSelect don't match.