bigbuffet-rw/types/emoji-mart/index.d.ts

107 lines
1.8 KiB
TypeScript
Raw Normal View History

2022-07-04 19:08:47 -07:00
2022-06-25 20:55:17 -07:00
declare module 'emoji-mart' {
2022-07-04 19:08:47 -07:00
export interface NativeEmoji {
unified: string,
native: string,
x: number,
y: number,
}
export interface CustomEmoji {
2022-07-04 13:30:35 -07:00
src: string
}
2022-07-04 19:08:47 -07:00
export interface Emoji<T> {
2022-07-04 13:30:35 -07:00
id: string,
name: string,
keywords: string[],
2022-07-04 19:08:47 -07:00
skins: T[],
version?: number,
2022-07-04 13:30:35 -07:00
}
2022-07-04 20:45:01 -07:00
export interface EmojiPick {
id: string,
name: string,
native?: string,
unified?: string,
keywords: string[],
shortcodes: string,
emoticons: string[],
src?: string,
}
2022-07-04 13:30:35 -07:00
export interface PickerProps {
2022-07-04 19:08:47 -07:00
custom?: { emojis: Emoji<CustomEmoji> }[],
2022-06-25 20:55:17 -07:00
set?: string,
title?: string,
theme?: string,
2022-07-04 20:45:01 -07:00
onEmojiSelect?: (emoji: EmojiPick) => void,
2022-06-25 20:55:17 -07:00
recent?: any,
skin?: any,
perLine?: number,
emojiSize?: number,
emojiButtonSize?: number,
navPosition?: string,
autoFocus?: boolean,
i18n?: any,
}
export class Picker {
constructor(props: PickerProps);
}
}
2022-07-03 01:12:57 -07:00
2022-07-04 16:07:04 -07:00
declare module '@emoji-mart/data/sets/14/twitter.json' {
2022-07-04 19:08:47 -07:00
export interface NativeEmoji {
2022-07-04 16:07:04 -07:00
unified: string,
native: string,
x: number,
y: number,
}
2022-07-04 19:08:47 -07:00
export interface CustomEmoji {
src: string
2022-07-04 16:07:04 -07:00
}
2022-07-04 19:08:47 -07:00
export interface Emoji<T> {
2022-07-04 16:07:04 -07:00
id: string,
name: string,
keywords: string[],
2022-07-04 19:08:47 -07:00
skins: T[],
version?: number,
}
export interface EmojiCategory {
id: string,
emojis: string[],
2022-07-03 01:12:57 -07:00
}
2022-07-04 16:07:04 -07:00
export interface EmojiMap {
2022-07-04 19:08:47 -07:00
[s: string]: Emoji<NativeEmoji>,
2022-07-04 16:07:04 -07:00
}
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;
2022-07-03 01:12:57 -07:00
}