Start actually typechecking

This commit is contained in:
Greg Shuflin 2021-09-12 01:39:52 -07:00
parent 0a2934616e
commit 31e3113ca7
2 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,9 @@
"private": true,
"scripts": {
"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": {
"@parcel/transformer-image": "2.0.0-rc.0",

View File

@ -26,7 +26,7 @@ function declineSaimiar(entry) {
return null;
}
function vowelDeclension(sai) {
function vowelDeclension(sai: string) {
const {root, ending} = rootEndingPair(sai);
const adpEnding = ending === 'u' ? 'ys' : `${ending}s`;