Add types for conventional-commits-detector (#45538)

This commit is contained in:
Jamie Magee 2020-06-21 10:10:30 +02:00 committed by GitHub
parent dd3765e494
commit 2b693605f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,3 @@
import conventionalCommitsDetector from 'conventional-commits-detector';
conventionalCommitsDetector(['test(matchers): add support for toHaveClass in tests']); // $ExpectType string

View File

@ -0,0 +1,7 @@
// Type definitions for conventional-commits-detector 1.0
// Project: https://github.com/conventional-changelog/conventional-commits-detector#readme
// Definitions by: Jamie Magee <https://github.com/JamieMagee>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function conventionalCommitsDetector(commits: string[]): string;
export = conventionalCommitsDetector;

View File

@ -0,0 +1,24 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"esModuleInterop": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"conventional-commits-detector-tests.ts"
]
}

View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }