iya-sts
    Preparing search index...

    Variable expiryField

    expiryField: (field: any, scale: any) => (value: any) => number = expiryField

    Type Declaration

      • (field: any, scale: any): (value: any) => number
      • Builds an expiresAt hook that reads one field of the record.

        Parameters

        • field: any

          the field holding the expiry; null for the value itself

        • scale: any

          what one unit of it is in milliseconds (1000 for seconds)

        Returns (value: any) => number

        the hook, (value) => epoch milliseconds | null