mirror of
https://github.com/codex-team/editor.js
synced 2024-06-12 19:02:34 +02:00
Lint
This commit is contained in:
parent
d9949ca383
commit
b7977c92fb
|
@ -1,10 +1,9 @@
|
|||
/**
|
||||
* Resolves aliases in specified object according to passed aliases info
|
||||
*
|
||||
*
|
||||
* @example resolveAliases(obj, { label: 'title' })
|
||||
* here 'label' is alias for 'title'
|
||||
*
|
||||
* @param item - item with resolved aliases
|
||||
* @param obj - object with aliases to be resolved
|
||||
* @param aliases - object with aliases info where key is an alias property name and value is an aliased property name
|
||||
*/
|
||||
export function resolveAliases<ObjectType>(obj: ObjectType, aliases: { [alias: string]: string }): ObjectType {
|
||||
|
|
Loading…
Reference in a new issue