mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Merge pull request #13293 from dbrgn/emojione
Add emojione type declarations
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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 2.2
|
||||
// Project: https://github.com/Ranks/emojione
|
||||
// Definitions by: Danilo Bargen <https://github.com/dbrgn/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export as namespace emojione;
|
||||
|
||||
export var sprites: boolean;
|
||||
export var imagePathPNG: string;
|
||||
export var imagePathSVG: string;
|
||||
export var imagePathSVGSprites: string;
|
||||
export var imageType: 'png' | 'svg';
|
||||
export var unicodeAlt: boolean;
|
||||
export var ascii: boolean;
|
||||
export var unicodeRegexp: string;
|
||||
export var cacheBustParam: string;
|
||||
export function toShort(str: string): string;
|
||||
export function toImage(str: string): string;
|
||||
export function shortnameToImage(str: string): string;
|
||||
export function unicodeToImage(str: string): string;
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"emojione-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "../tslint.json" }
|
||||
Reference in New Issue
Block a user