mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 03:56:23 +08:00
feat: leave ui
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
export { isDev } from './env';
|
||||
|
||||
export * from './useragent';
|
||||
|
||||
export * from './tools';
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
export function debounce(fn: Function, timeout: number) {
|
||||
let timeoutId: any;
|
||||
|
||||
return function (this: any) {
|
||||
clearTimeout(timeoutId);
|
||||
timeoutId = setTimeout(() => fn.apply(this, arguments), timeout);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user