Fixing lint issues

This commit is contained in:
Ohad Maishar
2019-02-19 21:47:49 +02:00
parent 10e9b1cf8b
commit 888e90ae12
3 changed files with 8 additions and 10 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import indefinite from "indefinite";
import { indefinite } from "indefinite";
const anApple = indefinite("apple"); // "an apple"
const aBanana = indefinite('banana'); // "a banana"
+5 -8
View File
@@ -3,12 +3,9 @@
// Definitions by: My Self <https://github.com/me>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module "indefinite" {
interface Options {
capitalize?: boolean;
caseInsensitive?: boolean;
numbers?: "colloquial";
}
export default function(word: string | number, opts?: Options): string;
export interface Options {
capitalize?: boolean;
caseInsensitive?: boolean;
numbers?: "colloquial";
}
export function indefinite(word: string | number, opts?: Options): string;
+2 -1
View File
@@ -13,7 +13,8 @@
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"strictFunctionTypes": true
},
"files": [
"index.d.ts",