mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Add types for conventional-commits-detector (#45538)
This commit is contained in:
parent
dd3765e494
commit
2b693605f3
@ -0,0 +1,3 @@
|
||||
import conventionalCommitsDetector from 'conventional-commits-detector';
|
||||
|
||||
conventionalCommitsDetector(['test(matchers): add support for toHaveClass in tests']); // $ExpectType string
|
||||
7
types/conventional-commits-detector/index.d.ts
vendored
Normal file
7
types/conventional-commits-detector/index.d.ts
vendored
Normal 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;
|
||||
24
types/conventional-commits-detector/tsconfig.json
Normal file
24
types/conventional-commits-detector/tsconfig.json
Normal 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"
|
||||
]
|
||||
}
|
||||
1
types/conventional-commits-detector/tslint.json
Normal file
1
types/conventional-commits-detector/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user