applesauce-core 0.0.0-next-20241210184957 → 0.0.0-next-20241210192003
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helpers/emoji.d.ts +4 -3
- package/package.json +1 -1
package/dist/helpers/emoji.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ import { EventTemplate, NostrEvent } from "nostr-tools";
|
|
|
3
3
|
export declare function getEmojiTag(event: NostrEvent | EventTemplate, code: string): ["emoji", string, string] | undefined;
|
|
4
4
|
/** Returns the name of a NIP-30 emoji pack */
|
|
5
5
|
export declare function getPackName(pack: NostrEvent): string | undefined;
|
|
6
|
-
|
|
7
|
-
export declare function getEmojis(pack: NostrEvent): {
|
|
6
|
+
export type Emoji = {
|
|
8
7
|
name: string;
|
|
9
8
|
url: string;
|
|
10
|
-
}
|
|
9
|
+
};
|
|
10
|
+
/** Returns an array of emojis from a NIP-30 emoji pack */
|
|
11
|
+
export declare function getEmojis(pack: NostrEvent): Emoji[];
|