feat(SnowflakeUtil): add timestampFrom (#7058)

This commit is contained in:
Antonio Román
2021-12-06 08:56:29 +01:00
committed by GitHub
parent 1c93faa3ab
commit 8b200c0fee
19 changed files with 27 additions and 17 deletions

1
typings/index.d.ts vendored
View File

@@ -1976,6 +1976,7 @@ export class SnowflakeUtil extends null {
private constructor();
public static deconstruct(snowflake: Snowflake): DeconstructedSnowflake;
public static generate(timestamp?: number | Date): Snowflake;
public static timestampFrom(snowflake: Snowflake): number;
public static readonly EPOCH: number;
}