From 9ea9fecb28e93d88e47e435327d4f63dd4bd957f Mon Sep 17 00:00:00 2001 From: adueck Date: Sun, 22 Jan 2023 21:20:15 +0500 Subject: [PATCH] touchup type --- functions/src/word-list-maker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/src/word-list-maker.ts b/functions/src/word-list-maker.ts index f3df002..e978367 100644 --- a/functions/src/word-list-maker.ts +++ b/functions/src/word-list-maker.ts @@ -6,10 +6,10 @@ import { } from "@lingdocs/inflect"; 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 { - return `${o.p}X${o.f}` as PSHash; + return `${o.p}X${o.f}`; } export function splitWords(o: T.PsString): T.PsString[] {