a6a4ceee86
* fixing up typing * better dynamic loader mechanism * buildReqLoaders cleanup * added caching to loaders * ensuring all loaders are async * fe2 plugins error handling fix * feat(shared): true-myth result structures & other auth policy improvements * moving workspaceCore loaders to correct place
9 lines
265 B
TypeScript
9 lines
265 B
TypeScript
import { Authz, MaybeAsync } from '@speckle/shared'
|
|
|
|
// define being an arg simplifes usage in export default calls
|
|
export const defineModuleLoaders = (
|
|
define: () => MaybeAsync<Partial<Authz.AuthCheckContextLoaders>>
|
|
) => {
|
|
return async () => await define()
|
|
}
|