mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
fix
This commit is contained in:
5 files changed
+7
-7
No files matched your search
@@ -1,5 +1,5 @@
|
||||
export function buildProjection<T extends string | number = string>(fields: readonly T[]): Record<T, true> {
|
||||
const o: Record<T, true> = {} as any;
|
||||
const o: Record<T, true> = Object.create(null);
|
||||
for (const k of fields) o[k] = true;
|
||||
return o;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user