Skip to content

Commit 281c26b

Browse files
committed
fix: labels and links typing
1 parent c32f1ba commit 281c26b

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

index.d.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,10 @@ declare module 'jest-allure2-reporter' {
722722
}
723723

724724
export type LabelName =
725+
| KnownLabelName
726+
| string;
727+
728+
export type KnownLabelName =
725729
| 'epic'
726730
| 'feature'
727731
| 'owner'
@@ -734,16 +738,17 @@ declare module 'jest-allure2-reporter' {
734738
| 'tag'
735739
| 'testClass'
736740
| 'testMethod'
737-
| 'thread'
738-
| (string & {});
741+
| 'thread';
739742

740743
export interface Link {
741744
name?: string;
742745
url: string;
743746
type?: LinkType;
744747
}
745748

746-
export type LinkType = 'issue' | 'tms' | (string & {});
749+
export type LinkType = KnownLinkType | string;
750+
751+
export type KnownLinkType = 'issue' | 'tms';
747752

748753
export interface Parameter {
749754
name: string;

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
"prepare": "husky install",
7171
"prepack": "tsc",
7272
"build": "tsc",
73-
"docs": "typedoc",
7473
"lint": "eslint . --fix",
7574
"lint:ci": "eslint .",
7675
"lint:staged": "lint-staged",
@@ -104,8 +103,7 @@
104103
"lint-staged": "^14.0.1",
105104
"semantic-release": "^22.0.5",
106105
"ts-jest": "^29.0.0",
107-
"typedoc": "^0.24.7",
108-
"typescript": "4.x.x"
106+
"typescript": "5.x.x"
109107
},
110108
"dependencies": {
111109
"bunyamin": "^1.6.1",

tsconfig.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "es2022",
4-
"module": "commonjs",
4+
"module": "node16",
55
"moduleResolution": "node16",
66
"importHelpers": true,
77
"downlevelIteration": true,
@@ -24,9 +24,8 @@
2424
"esModuleInterop": true,
2525
"skipLibCheck": false,
2626
"forceConsistentCasingInFileNames": true,
27-
"importsNotUsedAsValues": "error",
2827
"rootDir": "src",
2928
"outDir": "dist"
3029
},
31-
"include": ["src"],
30+
"include": ["src"]
3231
}

0 commit comments

Comments
 (0)