touchup type
This commit is contained in:
parent
7800686870
commit
9ea9fecb28
|
@ -6,10 +6,10 @@ import {
|
||||||
} from "@lingdocs/inflect";
|
} from "@lingdocs/inflect";
|
||||||
import { isNounOrAdjEntry } from "@lingdocs/inflect/dist/lib/src/type-predicates";
|
import { isNounOrAdjEntry } from "@lingdocs/inflect/dist/lib/src/type-predicates";
|
||||||
|
|
||||||
type PSHash = string & { ___brand: "a hash of PSString" };
|
type PSHash = `${string}X${string}`;
|
||||||
|
|
||||||
function makeHash(o: T.PsString): PSHash {
|
function makeHash(o: T.PsString): PSHash {
|
||||||
return `${o.p}X${o.f}` as PSHash;
|
return `${o.p}X${o.f}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function splitWords(o: T.PsString): T.PsString[] {
|
export function splitWords(o: T.PsString): T.PsString[] {
|
||||||
|
|
Loading…
Reference in New Issue