mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Add types for esrever (#38048)
This commit is contained in:
committed by
Andrew Casey
parent
25731aaec0
commit
71ce6eca63
@@ -0,0 +1,4 @@
|
||||
import * as esrever from "esrever";
|
||||
|
||||
esrever.version; // $ExpectType string
|
||||
esrever.reverse("abc"); // $ExpectType string
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
// Type definitions for esrever 0.2
|
||||
// Project: https://github.com/mathiasbynens/esrever
|
||||
// Definitions by: Yuichiro Tsuchiya <https://github.com/tuttieee>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export as namespace esrever;
|
||||
|
||||
/**
|
||||
* A string representing the semantic version number.
|
||||
*/
|
||||
export const version: string;
|
||||
|
||||
/**
|
||||
* This function takes a string and returns the reversed version of that string,
|
||||
* correctly accounting for Unicode combining marks and astral symbols.
|
||||
*/
|
||||
export function reverse(text: string): string;
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"esrever-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user