This commit is contained in:
かっこかり 2024-11-09 14:17:25 +09:00 committed by GitHub
commit 64b2c560f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 91 additions and 12 deletions

View file

@ -0,0 +1,8 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export function getObjKeys<T extends { [x: string]: unknown }>(obj: T): (keyof T)[] {
return Object.keys(obj);
}