File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { ExhaustedError, TranslationTodoError } from "./error.ts";
9
9
import { nanpa } from "./nanpa.ts" ;
10
10
import { noun } from "./noun.ts" ;
11
11
import { number , numberAsText } from "./number.ts" ;
12
- import { phrase } from "./phrase.ts" ;
12
+ import { phrase , PhraseTranslation } from "./phrase.ts" ;
13
13
import { pronoun } from "./pronoun.ts" ;
14
14
import { noEmphasis , word } from "./word.ts" ;
15
15
import { getReduplicationCount } from "./word_unit.ts" ;
@@ -146,7 +146,9 @@ function defaultModifier(wordUnit: TokiPona.WordUnit) {
146
146
}
147
147
}
148
148
}
149
- function pi ( insidePhrase : TokiPona . Phrase ) {
149
+ function pi (
150
+ insidePhrase : TokiPona . Phrase ,
151
+ ) : IterableResult < ModifierTranslation > {
150
152
return phrase ( {
151
153
phrase : insidePhrase ,
152
154
place : "object" ,
@@ -159,7 +161,9 @@ function pi(insidePhrase: TokiPona.Phrase) {
159
161
)
160
162
. filter ( ( modifier ) =>
161
163
modifier . type !== "adjective" || modifier . inWayPhrase == null
162
- ) as IterableResult < ModifierTranslation > ;
164
+ ) as IterableResult <
165
+ PhraseTranslation & { type : Exclude < PhraseTranslation [ "type" ] , "verb" > }
166
+ > ;
163
167
}
164
168
function modifier ( modifier : TokiPona . Modifier ) {
165
169
switch ( modifier . type ) {
You can’t perform that action at this time.
0 commit comments