Appearance
getTranslatedProperty
Definition
Get translated property from the given object.
Signature
ts
export function getTranslatedProperty<T>(
element: T | undefined | null | never,
property: keyof T,
): string
Parameters
Name | Type | Description |
---|---|---|
element | T | undefined | | never | object with translated property |
property | keyof T |
Return type
ts
string