GO-DIE
GO-DIE
此答案对本题做了优化: **使用元组类型支持新增多个前置参数** ```typescript /** * 以函数类型 F,并新增以元组类型为 T 的多个前置参数构造新类型 */ type Fn = (a: number, b: string) => number; // 定义非空元组约束类型 type NonEmptyTuple = [unknown, ...unknown[]]; // 1. 使用 Parameters...
I also need this feature The deletion of this feature causes my code to be difficult to maintain
Soft delete plugin => [https://www.npmjs.com/package/soft-delete-mongoose-plugin](https://www.npmjs.com/package/soft-delete-mongoose-plugin) A simple and friendly soft delete plugin for mongoose,implementation using TS. Methods were added and overridden on mongoose model to realize soft deletion logic.
Look forward to seeing this feature supported