From 281c26b243b9ed98834b05d81c151dcc366c2f70 Mon Sep 17 00:00:00 2001 From: Yaroslav Serhieiev Date: Tue, 5 Nov 2024 15:52:34 +0200 Subject: [PATCH] fix: labels and links typing --- index.d.ts | 11 ++++++++--- package.json | 4 +--- tsconfig.json | 5 ++--- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/index.d.ts b/index.d.ts index 86f91f6..8a4c7b7 100644 --- a/index.d.ts +++ b/index.d.ts @@ -722,6 +722,10 @@ declare module 'jest-allure2-reporter' { } export type LabelName = + | KnownLabelName + | string; + + export type KnownLabelName = | 'epic' | 'feature' | 'owner' @@ -734,8 +738,7 @@ declare module 'jest-allure2-reporter' { | 'tag' | 'testClass' | 'testMethod' - | 'thread' - | (string & {}); + | 'thread'; export interface Link { name?: string; @@ -743,7 +746,9 @@ declare module 'jest-allure2-reporter' { type?: LinkType; } - export type LinkType = 'issue' | 'tms' | (string & {}); + export type LinkType = KnownLinkType | string; + + export type KnownLinkType = 'issue' | 'tms'; export interface Parameter { name: string; diff --git a/package.json b/package.json index 6e9c676..ddb484e 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,6 @@ "prepare": "husky install", "prepack": "tsc", "build": "tsc", - "docs": "typedoc", "lint": "eslint . --fix", "lint:ci": "eslint .", "lint:staged": "lint-staged", @@ -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", diff --git a/tsconfig.json b/tsconfig.json index 5e7e0ae..f808fe8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "es2022", - "module": "commonjs", + "module": "node16", "moduleResolution": "node16", "importHelpers": true, "downlevelIteration": true, @@ -24,9 +24,8 @@ "esModuleInterop": true, "skipLibCheck": false, "forceConsistentCasingInFileNames": true, - "importsNotUsedAsValues": "error", "rootDir": "src", "outDir": "dist" }, - "include": ["src"], + "include": ["src"] }