catppuccin / tailwindcss

💨 Soothing pastel theme for Tailwind CSS
https://tailwindcss.catppuccin.com/
MIT License
372 stars 5 forks source link

Missing module type definitions #8

Closed andeen171 closed 1 year ago

andeen171 commented 1 year ago

I have an project that I started using CreateT3App and the default type safety configurations add tailwind.config.cjs to the ts type checker and i get an error from typescript:

/** @type {import('tailwindcss').Config} */
const config = {
  content: ["./src/**/*.{js,ts,jsx,tsx}"],
  theme: {
    extend: {},
  },
  plugins: [
    require("@tailwindcss/forms"), // Don't show any errors
    require('@catppuccin/tailwindcss')({ // almost jumps out of my pc and punches me in the face
      prefix: 'ctp',
    }),
  ],
};

module.exports = config;
Could not find a declaration file for module '@catppuccin/tailwindcss'. '$PROJECT_ROOT/node_modules/@catppuccin/tailwindcss/plugin.js' implicitly has an 'any' type. 
Try 'npm i --save-dev @types/catppuccin__tailwindcss' if it exists or add a new declaration (.d.ts) file containing 'declare module @catppuccin/tailwindcss';

As i obviously tried installing @types/catppuccin__taildwindcss and it didn't even run, here i'm asking for an .d.ts file for type checking purposes.

nekowinston commented 1 year ago

Hi there! Yeah, I have #7 open to address this, hoping that I can merge it into main soon.

nekowinston commented 1 year ago

This should hopefully be closed with #7 (release 0.1.3), sorry that it took so long.