refactor, added slate, added editor, added book
This commit is contained in:
parent
bc250e73bb
commit
029b7e9353
33 changed files with 714 additions and 496 deletions
7
app/server/helpers.ts
Normal file
7
app/server/helpers.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { IdentityContext } from './identity';
|
||||
|
||||
export function ensureIdentity(
|
||||
identity: IdentityContext['identity']
|
||||
): asserts identity is NonNullable<IdentityContext['identity']> {
|
||||
if (identity == null) throw new Error('Unauthorized.');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue