soapbox/types/emoji-mart/index.d.ts

39 wiersze
672 B
TypeScript
Czysty Zwykły widok Historia

2022-06-26 03:55:17 +00:00
declare module 'emoji-mart' {
export type PickerProps = {
custom?: { emojis: any[] }[],
set?: string,
title?: string,
theme?: string,
onEmojiSelect?: any,
recent?: any,
skin?: any,
perLine?: number,
emojiSize?: number,
emojiButtonSize?: number,
navPosition?: string,
set?: string,
theme?: string,
autoFocus?: boolean,
i18n?: any,
}
export class Picker {
constructor(props: PickerProps);
}
}
2022-07-03 08:12:57 +00:00
declare module '@emoji-mart/data' {
2022-07-03 08:18:30 +00:00
interface EmojiData {
2022-07-03 08:12:57 +00:00
emojis: {
[s: string]: {
skins: { unified: string, native: string }[],
}
}
}
2022-07-03 08:18:30 +00:00
export const emojis: Emojidata;
2022-07-03 08:12:57 +00:00
}