Skip to content

Commit

Permalink
fix: labels and links typing
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Nov 6, 2024
1 parent c32f1ba commit 281c26b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
11 changes: 8 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,10 @@ declare module 'jest-allure2-reporter' {
}

export type LabelName =
| KnownLabelName
| string;

export type KnownLabelName =
| 'epic'
| 'feature'
| 'owner'
Expand All @@ -734,16 +738,17 @@ declare module 'jest-allure2-reporter' {
| 'tag'
| 'testClass'
| 'testMethod'
| 'thread'
| (string & {});
| 'thread';

export interface Link {
name?: string;
url: string;
type?: LinkType;
}

export type LinkType = 'issue' | 'tms' | (string & {});
export type LinkType = KnownLinkType | string;

export type KnownLinkType = 'issue' | 'tms';

export interface Parameter {
name: string;
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
"prepare": "husky install",
"prepack": "tsc",
"build": "tsc",
"docs": "typedoc",
"lint": "eslint . --fix",
"lint:ci": "eslint .",
"lint:staged": "lint-staged",
Expand Down Expand Up @@ -104,8 +103,7 @@
"lint-staged": "^14.0.1",
"semantic-release": "^22.0.5",
"ts-jest": "^29.0.0",
"typedoc": "^0.24.7",
"typescript": "4.x.x"
"typescript": "5.x.x"
},
"dependencies": {
"bunyamin": "^1.6.1",
Expand Down
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2022",
"module": "commonjs",
"module": "node16",
"moduleResolution": "node16",
"importHelpers": true,
"downlevelIteration": true,
Expand All @@ -24,9 +24,8 @@
"esModuleInterop": true,
"skipLibCheck": false,
"forceConsistentCasingInFileNames": true,
"importsNotUsedAsValues": "error",
"rootDir": "src",
"outDir": "dist"
},
"include": ["src"],
"include": ["src"]
}

0 comments on commit 281c26b

Please sign in to comment.