Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/actionify/src/deps/types.ts>KebabCasedProperties

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
type alias KebabCasedProperties
import { type KebabCasedProperties } from "https://deno.land/x/actionify@0.3.0/src/deps/types.ts";

Convert object properties to kebab case but not recursively.

This can be useful when, for example, converting some API types from a different style.

Examples

Example 1

import type {KebabCasedProperties} from 'type-fest';

interface User {
	userId: number;
	userName: string;
}

const result: KebabCasedProperties<User> = {
	'user-id': 1,
	'user-name': 'Tom',
};