mirror of https://github.com/buster-so/buster.git
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:
parent
4197cf799e
commit
4810daef9f
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue