UNPKG

@payloadcms/plugin-multi-tenant

Version:

Multi Tenant plugin for Payload

17 lines 662 B
import type { CollectionSlug, ServerProps, ViewTypes } from 'payload'; import type { MultiTenantPluginConfig } from '../../types.js'; type Args = { collectionSlug: CollectionSlug; docID?: number | string; globalSlugs: string[]; tenantArrayFieldName: string; tenantArrayTenantFieldName: string; tenantFieldName: string; tenantsCollectionSlug: string; useAsTitle: string; userHasAccessToAllTenants: Required<MultiTenantPluginConfig<any>>['userHasAccessToAllTenants']; viewType: ViewTypes; } & ServerProps; export declare const GlobalViewRedirect: (args: Args) => Promise<void>; export {}; //# sourceMappingURL=index.d.ts.map