Types, update styles

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2023-02-26 20:34:57 +01:00
parent 2bbbcd625e
commit 01a4e7370f
9 changed files with 73 additions and 417 deletions

View File

@ -1,108 +0,0 @@
declare module 'emoji-mart' {
export interface NativeEmoji {
unified: string
native: string
x: number
y: number
}
export interface CustomEmoji {
src: string
}
export interface Emoji<T> {
id: string
name: string
keywords: string[]
skins: T[]
version?: number
}
export interface EmojiPick {
id: string
name: string
native?: string
unified?: string
keywords: string[]
shortcodes: string
emoticons: string[]
src?: string
}
export interface PickerProps {
custom?: { emojis: Emoji<CustomEmoji> }[]
set?: string
title?: string
theme?: string
onEmojiSelect?: (emoji: EmojiPick) => void
recent?: any
skin?: any
perLine?: number
emojiSize?: number
emojiButtonSize?: number
navPosition?: string
autoFocus?: boolean
i18n?: any
getImageURL: (set: string, name: string) => string
getSpritesheetURL: (set: string) => string
}
export class Picker {
constructor(props: PickerProps);
}
}
declare module '@emoji-mart/data/sets/14/twitter.json' {
export interface NativeEmoji {
unified: string
native: string
x: number
y: number
}
export interface CustomEmoji {
src: string
}
export interface Emoji<T> {
id: string
name: string
keywords: string[]
skins: T[]
version?: number
}
export interface EmojiCategory {
id: string
emojis: string[]
}
export interface EmojiMap {
[s: string]: Emoji<NativeEmoji>
}
export interface EmojiAlias {
[s: string]: string
}
export interface EmojiSheet {
cols: number
rows: number
}
export interface EmojiData {
categories: EmojiCategory[]
emojis: EmojiMap
aliases: EmojiAlias
sheet: EmojiSheet
}
const data: EmojiData;
export default data;
}