mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
12
types/plur/index.d.ts
vendored
Normal file
12
types/plur/index.d.ts
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
// Type definitions for plur 3.0
|
||||
// Project: https://github.com/sindresorhus/plur#readme
|
||||
// Definitions by: Kyle Roach <https://github.com/iRoachie>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function plur(
|
||||
word: string,
|
||||
plural: string | number,
|
||||
count?: number
|
||||
): string;
|
||||
|
||||
export = plur;
|
||||
5
types/plur/plur-tests.ts
Normal file
5
types/plur/plur-tests.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import plur = require('plur');
|
||||
|
||||
const word = 'chicken';
|
||||
|
||||
plur(word, 2);
|
||||
16
types/plur/tsconfig.json
Normal file
16
types/plur/tsconfig.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": ["es6"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strictFunctionTypes": true
|
||||
},
|
||||
"files": ["index.d.ts", "plur-tests.ts"]
|
||||
}
|
||||
1
types/plur/tslint.json
Normal file
1
types/plur/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user