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>PascalCasedProperties

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

Convert object properties to pascal case but not recursively.

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

Examples

Example 1

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

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

const result: PascalCasedProperties<User> = {
	UserId: 1,
	UserName: 'Tom',
};
definition: Value extends Function ? Value : Value extends Array<infer U> ? Value : [K in keyof Valuein keyof PascalCase<K>]: Value[K]