utils.ts — drizzle-orm Source File
Architecture documentation for utils.ts, a typescript file in the drizzle-orm codebase. 0 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 1629628e_4eff_9b20_42a3_684d2771ecf7["utils.ts"] 18f289ce_0f7f_41d3_f858_a0f98f1a1891["awsdatapi.test.ts"] 18f289ce_0f7f_41d3_f858_a0f98f1a1891 --> 1629628e_4eff_9b20_42a3_684d2771ecf7 style 1629628e_4eff_9b20_42a3_684d2771ecf7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// shut up eslint you cannot possibly comprehend what's happening here
// eslint-disable-next-line @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars
export function Expect<T extends true>() {}
export type Equal<X, Y extends X> = (<T>() => T extends X ? 1 : 2) extends (<T>() => T extends Y ? 1 : 2) ? true
: false;
export function toLocalDate(date: Date) {
const localTime = new Date(date.getTime() - date.getTimezoneOffset() * 60000);
localTime.setUTCHours(0);
return localTime;
}
export const randomString = () =>
Array.from({ length: 10 }, () => 'abcdefghijklmnopqrstuvwxyz'[Math.floor(Math.random() * 26)]).join('');
Domain
Subdomains
Functions
Types
Imported By
Source
Frequently Asked Questions
What does utils.ts do?
utils.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain, QueryBuilders subdomain.
What functions are defined in utils.ts?
utils.ts defines 4 function(s): Expect, T, randomString, toLocalDate.
What files import utils.ts?
utils.ts is imported by 1 file(s): awsdatapi.test.ts.
Where is utils.ts in the architecture?
utils.ts is located at integration-tests/tests/utils.ts (domain: DrizzleORM, subdomain: QueryBuilders, directory: integration-tests/tests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free