From ad3d3d669bb3697946577247ebb15818f09c6c91 Mon Sep 17 00:00:00 2001 From: Alexey Molchan Date: Sat, 30 Apr 2022 09:56:42 +0300 Subject: [PATCH] export types --- index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index 98490b9c..4b7455ae 100644 --- a/index.d.ts +++ b/index.d.ts @@ -7,11 +7,11 @@ * @param options all info for this parsing operation * @param variant the optional \uFE0F ("as image") variant, in case this info is anyhow meaningful. By default this is ignored. */ -type ParseCallback = (icon: string, options: object, variant: string) => string | false; +export type ParseCallback = (icon: string, options: object, variant: string) => string | false; -type ReplacerFunction = (substring: string, ...args: any[]) => string; +export type ReplacerFunction = (substring: string, ...args: any[]) => string; -interface TwemojiOptions { +export type TwemojiOptions = { /** * Default: MaxCDN */ @@ -46,7 +46,7 @@ interface TwemojiOptions { attributes?(icon: string, variant: string): object; } -type Twemoji = { +export type Twemoji = { base: string; ext: string; className: string;