mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 09:06:19 +08:00
init: the first public commit for AFFiNE
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
const toAsync = (promise: Promise<unknown>) =>
|
||||
promise.then(data => [null, data]).catch(err => [err]);
|
||||
|
||||
export default toAsync;
|
||||
Reference in New Issue
Block a user