Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Use @types/culori (#735) This removes the need to define types here. Also this allows third parties to use this package without having to declare type definitions for culori.
Signature
-----BEGIN PGP SIGNATURE----- wsBcBAABCAAQBQJkRofiCRBK7hj4Ov3rIwAAqqQIAHFNnM+Ngk+nWlFAEhV4xTTc qNkQZnnIHJYv6qtFeoEqyrJdMcSqLoiCNQZtPg+HU9nFZvgUk+D9x00GbLJfzgv3 eJgVVaFMXhpC+TzDmhP9eXsRKKJPDROI6NeQb+Q3omcE7nothGT7RIBRYAJgIaQu cydJsq3HjoGu2RerQXWObGJy3yt6798iYn1gol7E1z1lMc7fHwbCNtWAXcxsvL6Y h9BXlYFb3j5CWU1EJN6flqexgxVyl/EpHEBdlmimMedTqfhK9CoXaKUjXtUyMVRX Qc430RyzRBdt3tnqIjuOCK5SP5RXvzPMR9Kgv4iGKaiv0rA4uP8f+O9jBn89yVY= =+YRY -----END PGP SIGNATURE-----
Remco Haszing <remcohaszing@gmail.com>
2 years ago
3 changed files, 12 additions(+), 28 deletions(-)
M packages/tailwindcss-language-service/package-lock.json -> packages/tailwindcss-language-service/package-lock.json
diff --git a/packages/tailwindcss-language-service/package-lock.json b/packages/tailwindcss-language-service/package-lock.json
index b6116864bf79ded60bf48892a81cc7c10576ec2f..ea3f67b218fbe052e2de4abed60b177ef635eef9 100644
--- a/packages/tailwindcss-language-service/package-lock.json
+++ b/packages/tailwindcss-language-service/package-lock.json
@@ -8,6 +8,7 @@     "": {
       "name": "tailwindcss-language-service",
       "version": "0.0.27",
       "dependencies": {
+        "@types/culori": "^2.0.0",
         "@types/moo": "0.5.3",
         "@types/semver": "7.3.10",
         "becke-ch--regex--s0-0-v1--base--pl--lib": "1.4.0",
@@ -2157,6 +2158,11 @@       "dev": true,
       "dependencies": {
         "@babel/types": "^7.3.0"
       }
+    },
+    "node_modules/@types/culori": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/@types/culori/-/culori-2.0.0.tgz",
+      "integrity": "sha512-bKpEra39sQS9UZ+1JoWhuGJEzwKS0dUkNCohVYmn6CAEBkqyIXimKiPDRZWtiOB7sKgkWMaTUpHFimygRoGIlg=="
     },
     "node_modules/@types/eslint-visitor-keys": {
       "version": "1.0.0",
@@ -14220,6 +14226,11 @@       "dev": true,
       "requires": {
         "@babel/types": "^7.3.0"
       }
+    },
+    "@types/culori": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/@types/culori/-/culori-2.0.0.tgz",
+      "integrity": "sha512-bKpEra39sQS9UZ+1JoWhuGJEzwKS0dUkNCohVYmn6CAEBkqyIXimKiPDRZWtiOB7sKgkWMaTUpHFimygRoGIlg=="
     },
     "@types/eslint-visitor-keys": {
       "version": "1.0.0",
M packages/tailwindcss-language-service/package.json -> packages/tailwindcss-language-service/package.json
diff --git a/packages/tailwindcss-language-service/package.json b/packages/tailwindcss-language-service/package.json
index 3eea7556e387ae831005f06b4fbd837e4ed53eb3..84a48f8f957fad62218adc29f45698ea8978c010 100644
--- a/packages/tailwindcss-language-service/package.json
+++ b/packages/tailwindcss-language-service/package.json
@@ -14,6 +14,7 @@     "lint": "tsdx lint",
     "prepublishOnly": "npm run build"
   },
   "dependencies": {
+    "@types/culori": "^2.0.0",
     "@types/moo": "0.5.3",
     "@types/semver": "7.3.10",
     "becke-ch--regex--s0-0-v1--base--pl--lib": "1.4.0",
D types/culori.d.ts
diff --git a/types/culori.d.ts b/types/culori.d.ts
deleted file mode 100644
index a24c2cd76305a165986a33c284504cc6bb3fc0c3..0000000000000000000000000000000000000000
--- a/types/culori.d.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-declare module 'culori' {
-  export interface RgbColor {
-    mode: 'rgb'
-    r: number
-    g: number
-    b: number
-    alpha?: number
-  }
-  export interface HslColor {
-    mode: 'hsl'
-    h: number
-    s: number
-    b: number
-    alpha?: number
-  }
-  export type Color = RgbColor | HslColor
-  export function parse(color: string): Color | undefined
-  export function formatRgb(color: Color | string): string
-  export function formatHsl(color: Color | string): string
-  export function formatHex(color: Color | string): string
-  export function formatHex8(color: Color | string): string
-
-  type Mode = 'rgb' | 'hsl'
-
-  export function converter<T extends Mode>(
-    mode: T
-  ): (color: Color | string) => T extends 'rgb' ? RgbColor : T extends 'hsl' ? HslColor : never
-}