Type alias ThroughFunction<J>

ThroughFunction<J>: (() => {
    foreignKey: keyof J;
    joinTable: (new (...args) => J);
})

Represents a function returning metadata for a join table.

Type Parameters

Type declaration

    • (): {
          foreignKey: keyof J;
          joinTable: (new (...args) => J);
      }
    • Returns {
          foreignKey: keyof J;
          joinTable: (new (...args) => J);
      }

      • foreignKey: keyof J

        The key representing the foreign key property of the join table.

      • joinTable: (new (...args) => J)

        The constructor function for the join table.

        Returns

        An instance of the join table.

          • new (...args): J
          • Parameters

            • Rest ...args: any[]

              Constructor arguments for the join table.

            Returns J

Generated using TypeDoc