Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yano3nora_tsutils/main.ts>objectKeys

TypeScript Utilities as a npm dual package by Deno.
Go to Latest
variable objectKeys
Re-export
import { objectKeys } from "https://deno.land/x/yano3nora_tsutils@v0.17.0/main.ts";

type inferable Object.keys

NOTE key が number な型定義だと number[] になりつつ 「 js の object key は全て string 」という仕様で string[] になるので、後続で map(Number) など必要

type

<T extends Record<string, unknown>>(target: T) => (keyof T)[]