Skip to content

Commit 19e0ee9

Browse files
authored
Add types for changelog-filename-regex (DefinitelyTyped#45770)
1 parent 4a5ac6d commit 19e0ee9

File tree

4 files changed

+35
-0
lines changed

4 files changed

+35
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import changelogFilenameRegex from 'changelog-filename-regex';
2+
3+
changelogFilenameRegex.test('CHANGELOG'); // $ExpectType boolean
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Type definitions for changelog-filename-regex 2.0
2+
// Project: https://github.com/shinnn/changelog-filename-regex#readme
3+
// Definitions by: Jamie Magee <https://github.com/JamieMagee>
4+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5+
6+
declare const changelogFilenameRegex: RegExp;
7+
export = changelogFilenameRegex;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"compilerOptions": {
3+
"module": "commonjs",
4+
"lib": [
5+
"es6"
6+
],
7+
"noImplicitAny": true,
8+
"noImplicitThis": true,
9+
"strictFunctionTypes": true,
10+
"strictNullChecks": true,
11+
"esModuleInterop": true,
12+
"baseUrl": "../",
13+
"typeRoots": [
14+
"../"
15+
],
16+
"types": [],
17+
"noEmit": true,
18+
"forceConsistentCasingInFileNames": true
19+
},
20+
"files": [
21+
"index.d.ts",
22+
"changelog-filename-regex-tests.ts"
23+
]
24+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "extends": "dtslint/dt.json" }

0 commit comments

Comments
 (0)