chore(repo): prune dead code and duplicate abstractions (#3413)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-12 13:09:42 +02:00
1 parent c17091768c
commit c9fdf8fead
2937 files changed
+42233 -176793

No files matched your search

+4 -4
View File
@@ -164,10 +164,6 @@ export function createSnowflake(options: CreateSnowflakeOptions): bigint {
return createSnowflakeBigInt(relativeTimestamp, workerId, sequence);
}
export function createSnowflakeFromTimestamp(timestamp: number | bigint, workerId = 0): bigint {
return createSnowflake({timestamp, workerId});
}
export function snowflakeToDate(snowflake: bigint): Date {
return new Date(Number(toEpochTimestamp(snowflake >> TIMESTAMP_SHIFT)));
}
@@ -194,3 +190,7 @@ export function isValidSnowflake(value: unknown): value is bigint {
}
return true;
}
export function createSnowflakeFromTimestamp(timestamp: number | bigint, workerId = 0): bigint {
return createSnowflake({timestamp, workerId});
}