mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-17 06:12:02 +00:00

refactors comments feature: initial get comments and create comment updates tsconfig to support es2017 object prototype methods: values, entries, creates user-avatar component, adds styles, converts constants files to ts updates comment editor. updates styling. adds auto focus on click adds comment deletion adds confirmation dialog for comment deletion adds string union generic constraint type. adds comment stream header. adds comment update feature. adds style modifications and additions for comment components. refactors actions for comments using strategy pattern to allow for abstraction. adds dataset-constants constants module
8 lines
263 B
TypeScript
8 lines
263 B
TypeScript
/**
|
|
* Waits a given number of seconds before resolving
|
|
* @param {number} seconds the duration to wait for
|
|
* @return {Promise<void>}
|
|
*/
|
|
export const delay = (seconds: number = 5): Promise<void> =>
|
|
new Promise(resolve => setTimeout(resolve, seconds * 1000));
|