getTableAfterRead

View Source

Summary

Returns a table's optional after-read lifecycle callback. The callback receives the current read shape, which may be a projected partial row.

Signature

function getTableAfterRead<table extends AnyTable>(
  table: table,
):
  | TableAfterRead<{
      [key in string]: {
        [column in string]: ColumnOutput<TableColumns<table>[column]>;
      }[key];
    }>
  | undefined;

Params

table

Returns

After-read callback or undefined.