mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Add emojione type declarations
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/// <reference path="emojione.d.ts" />
|
||||
|
||||
emojione.sprites = true;
|
||||
emojione.imagePathPNG = 'foobar';
|
||||
emojione.imagePathSVG = 'foobar';
|
||||
emojione.imagePathSVGSprites = 'foobar';
|
||||
emojione.imageType = 'svg';
|
||||
emojione.unicodeAlt = false;
|
||||
emojione.ascii = true;
|
||||
emojione.unicodeRegexp = '123.*';
|
||||
emojione.cacheBustParam = 'asdf';
|
||||
const myShort: string = emojione.toShort('hi');
|
||||
const myImage1: string = emojione.toImage('hi');
|
||||
const myImage2: string = emojione.shortnameToImage('hi');
|
||||
const myImage3: string = emojione.unicodeToImage('hi');
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
// Type definitions for emojione
|
||||
// Project: https://github.com/Ranks/emojione
|
||||
// Definitions by: Danilo Bargen <https://github.com/dbrgn/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare var emojione: {
|
||||
sprites: boolean,
|
||||
imagePathPNG: string,
|
||||
imagePathSVG: string,
|
||||
imagePathSVGSprites: string,
|
||||
imageType: 'png' | 'svg',
|
||||
unicodeAlt: boolean,
|
||||
ascii: boolean,
|
||||
unicodeRegexp: string,
|
||||
cacheBustParam: string,
|
||||
toShort: (str: string) => string,
|
||||
toImage: (str: string) => string,
|
||||
shortnameToImage: (str: string) => string,
|
||||
unicodeToImage: (str: string) => string,
|
||||
};
|
||||
Reference in New Issue
Block a user