UNPKG

@ckeditor/ckeditor5-integrations-common

Version:

This package implements common utility modules for integration projects.

14 lines (13 loc) 629 B
/** * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ /** * Creates a new object with keys mapped using the provided function. * * @param obj - The input object. * @param fn - The mapping function (takes the original key, returns the new one). * If produces the same key for multiple inputs, later entries override earlier ones. * @returns A new object with the mapped keys. */ export declare function mapObjectKeys<T>(obj: Record<string, T>, fn: (key: string) => string): Record<string, T>;