TOC Toolkit API - v0.1.0
Preparing search index...
toc-toolkit/conversions
Translation
Interface Translation<From, To>
One catalogue construction with exact checked source and target parameters.
interface
Translation
<
From
extends
Model
,
To
extends
Model
>
{
id
:
TranslationId
;
from
:
ModelKind
;
to
:
ModelKind
;
relation
:
LanguageRelation
;
isTeaching
:
boolean
;
apply
(
source
:
From
,
budget
:
Budget
,
)
:
Result
<
Translated
<
To
>
,
Declined
|
Exhaustion
>
;
}
Type Parameters
From
extends
Model
To
extends
Model
Index
Properties
id
from
to
relation
is
Teaching
Methods
apply
Properties
Readonly
id
id
:
TranslationId
Readonly
from
from
:
ModelKind
Readonly
to
to
:
ModelKind
Readonly
relation
relation
:
LanguageRelation
Readonly
is
Teaching
isTeaching
:
boolean
Methods
apply
apply
(
source
:
From
,
budget
:
Budget
,
)
:
Result
<
Translated
<
To
>
,
Declined
|
Exhaustion
>
Parameters
source
:
From
budget
:
Budget
Returns
Result
<
Translated
<
To
>
,
Declined
|
Exhaustion
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
id
from
to
relation
is
Teaching
Methods
apply
TOC Toolkit API - v0.1.0
Loading...
One catalogue construction with exact checked source and target parameters.