@squidcloud/backend
    Preparing search index...

    Type Alias SecureDatabaseAction<T>

    SecureDatabaseAction: T extends "all"
        ? () => boolean | Promise<boolean>
        : T extends "read"
            ? | ((context: QueryContext) => boolean | Promise<boolean>)
            | (() => boolean | Promise<boolean>)
            :
                | ((context: MutationContext) => boolean | Promise<boolean>)
                | (() => boolean | Promise<boolean>)

    Type Parameters

    • T extends DatabaseActionType