Member Junction
    Preparing search index...

    Type Alias PreSaveHook

    PreSaveHook: (
        entity: BaseEntity,
        contextUser: UserInfo | undefined,
    ) => boolean | string | Promise<boolean | string>

    Hook that runs before a Save operation on a BaseEntity. Return true to allow the save, false to reject silently, or a string to reject with that error message.

    Type Declaration

      • (
            entity: BaseEntity,
            contextUser: UserInfo | undefined,
        ): boolean | string | Promise<boolean | string>
      • Parameters

        Returns boolean | string | Promise<boolean | string>