UNPKG

@mdefy/ngx-markdown-editor

Version:

An Angular Markdown Editor in WYSIWYG style with extensive functionality, high customizability and an integrated material theme.

13 lines (12 loc) 457 B
import { LanguageTag } from './language-tag'; /** * A generic type for optional internationalization. The result is a union type of * the plain applied type and an i18n object of the applied type. The i18n object type contains * an obligatory `default` property and optional language properties with language tags as * property names. */ export declare type OptionalI18n<T> = T | ({ default: T; } & { [lang in LanguageTag]?: T; });