`with` 的类型不正确

作者: salisbury-espinosa创建于 2025年3月16日更新于 2025年3月16日
typescript
TestModel.query()
      .with(
        'idWithRank',
        ['id', 'rank'],
        raw(`VALUES (?, ?), (?, ?), (?, ?)`, [69, 5, 57, 3, 63, 0]),
      )

=> failed cause columns is missed in typings for WithMethod

内容来源: Vincit/objection.js