Skip to content

Commit

Permalink
+1
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Jan 9, 2025
1 parent 287396f commit e4b5091
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions emoji/safe/safe.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
namespace $ {
export function $mol_emoji_safe(
this: $
): Record<

let cache = null! as Record<
string /*group*/,
Record<
string /*emoji*/,
readonly string[] /*keywords*/
>
> {
return this.$mol_fetch.json( './mol/emoji/safe/safe.json' ) as any
>

export function $mol_emoji_safe( this: $ ) {
if( cache ) return cache
const uri = './mol/emoji/safe/safe.json'
return cache = this.$mol_fetch.json( uri ) as typeof cache
}

}

0 comments on commit e4b5091

Please sign in to comment.