UNPKG

@zingage/postgres-multi-tenant-ids

Version:

PostgreSQL IDs for secure multi-tenant applications

11 lines 807 B
import fc from "fast-check"; import type { EntityTypesConfig } from "./index.js"; export declare function makeFastCheckArbitraries<T extends EntityTypesConfig>(entityConfigs: T): { TenantScopedEntityTypeArbitrary: fc.Arbitrary<keyof T["tenantScoped"] & string>; CrossTenantEntityTypeArbitrary: fc.Arbitrary<keyof T["crossTenant"] & string>; IdDateArbitrary: fc.Arbitrary<Date>; TenantIdArbitrary: fc.Arbitrary<import("./index.js").TenantId>; TenantScopedIdArbitrary: fc.Arbitrary<import("./index.js").ScopedId<import("./index.js").NamedEntityTypeConfigs, keyof T["tenantScoped"] & string>>; CrossTenantIdArbitrary: fc.Arbitrary<import("./index.js").UnscopedId<import("./index.js").NamedEntityTypeConfigs, keyof T["crossTenant"] & string>>; }; //# sourceMappingURL=fast-check.d.ts.map