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

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

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

Convert object properties to snake case but not recursively.

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

Examples

Example 1

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

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

const result: SnakeCasedProperties<User> = {
	user_id: 1,
	user_name: 'Tom',
};
definition: DelimiterCasedProperties<Value, "_">