Start actually typechecking
This commit is contained in:
parent
0a2934616e
commit
31e3113ca7
@ -8,7 +8,9 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "parcel index.html",
|
"start": "parcel index.html",
|
||||||
"build": "parcel build index.html --no-source-maps"
|
"build": "parcel build index.html --no-source-maps",
|
||||||
|
"prebuild": "yarn run typecheck",
|
||||||
|
"typecheck": "tsc --noEmit src/saimiar_morphology.ts"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@parcel/transformer-image": "2.0.0-rc.0",
|
"@parcel/transformer-image": "2.0.0-rc.0",
|
||||||
|
@ -26,7 +26,7 @@ function declineSaimiar(entry) {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
function vowelDeclension(sai) {
|
function vowelDeclension(sai: string) {
|
||||||
const {root, ending} = rootEndingPair(sai);
|
const {root, ending} = rootEndingPair(sai);
|
||||||
const adpEnding = ending === 'u' ? 'ys' : `${ending}s`;
|
const adpEnding = ending === 'u' ? 'ys' : `${ending}s`;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user