@commitlint/types
Advanced tools
+4
-3
@@ -1,2 +0,2 @@ | ||
| import type { ColorName, ModifierName } from "chalk"; | ||
| import type pc from "picocolors"; | ||
| import { QualifiedRules } from "./load.js"; | ||
@@ -20,7 +20,8 @@ import { RuleConfigSeverity } from "./rules.js"; | ||
| } | ||
| export type ChalkColor = ColorName | ModifierName; | ||
| export type PicocolorsColor = Exclude<keyof typeof pc, "isColorSupported" | "createColors">; | ||
| export type ChalkColor = PicocolorsColor; | ||
| export interface FormatOptions { | ||
| color?: boolean; | ||
| signs?: readonly [string, string, string]; | ||
| colors?: readonly [ChalkColor, ChalkColor, ChalkColor]; | ||
| colors?: readonly [PicocolorsColor, PicocolorsColor, PicocolorsColor]; | ||
| verbose?: boolean; | ||
@@ -27,0 +28,0 @@ helpUrl?: string; |
+1
-1
@@ -1,2 +0,2 @@ | ||
| import type { Options } from "conventional-commits-parser"; | ||
| import type { ParserOptions as Options } from "conventional-commits-parser"; | ||
| import { IsIgnoredOptions } from "./is-ignored.js"; | ||
@@ -3,0 +3,0 @@ import { PluginRecords } from "./load.js"; |
+1
-0
@@ -41,3 +41,4 @@ import { UserPromptConfig } from "./prompt.js"; | ||
| parserOpts?: unknown; | ||
| parser?: unknown; | ||
| } | ||
| //# sourceMappingURL=load.d.ts.map |
+1
-1
@@ -1,3 +0,3 @@ | ||
| import type { Commit, Options } from "conventional-commits-parser"; | ||
| import type { Commit, ParserOptions as Options } from "conventional-commits-parser"; | ||
| export type Parser = (message: string, options: Options) => Omit<Commit, "raw">; | ||
| //# sourceMappingURL=parse.d.ts.map |
+4
-4
| { | ||
| "name": "@commitlint/types", | ||
| "type": "module", | ||
| "version": "20.3.1", | ||
| "version": "20.4.0", | ||
| "description": "Shared types for commitlint packages", | ||
@@ -32,4 +32,4 @@ "main": "lib/index.js", | ||
| "dependencies": { | ||
| "@types/conventional-commits-parser": "^5.0.0", | ||
| "chalk": "^5.3.0" | ||
| "conventional-commits-parser": "^6.2.1", | ||
| "picocolors": "^1.1.1" | ||
| }, | ||
@@ -39,3 +39,3 @@ "devDependencies": { | ||
| }, | ||
| "gitHead": "be3a280aeadef5afa8ec83dbbe794ab2f72b9c3a" | ||
| "gitHead": "c68de5e24b010e38eac171f35ba18d31bb1fd3dd" | ||
| } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
25217
0.96%286
0.7%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed