mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 23:00:20 +08:00
1bba2ef65e
* Delete netlify.toml
* 🆙 upgrade dev deps
* fix mockdate tsd
* fix tsc noEmit
12 lines
284 B
TypeScript
12 lines
284 B
TypeScript
import MockDate from 'mockdate';
|
|
|
|
export function setMockDate(dateString = '2017-09-18T03:30:07.795') {
|
|
MockDate.set(dateString);
|
|
}
|
|
|
|
export function resetMockDate() {
|
|
MockDate.reset();
|
|
}
|
|
|
|
export const sleep = (timeout = 0) => new Promise(resolve => setTimeout(resolve, timeout));
|