Types, update styles
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
108
types/emoji-mart/index.d.ts
vendored
108
types/emoji-mart/index.d.ts
vendored
@ -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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user