question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question on custom classes and CLI

See original GitHub issue

I’ve been trying to get to include custom classes generated with cli but still can’t get around it. My setup: tsconfig.json { ..., "typeRoots": [ "./src/@types", "./node_modules/@types" ] } src/@types/css-types.d.ts ... | 'text-pink-600' | 'text-pink-700' | 'text-pink-800' | 'text-pink-900' | 'text-primary' | 'text-nermin' | 'text-ribbon-200';

button.tsx Screen Shot 2020-10-13 at 07 54 20

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
muhammadsammycommented, Mar 12, 2021

Tooltips that show in what css the classes result are not to be expected in general, correct?

That is correct. the issue for tracking this is here: #10. But it’s not supported yet in TS (https://github.com/microsoft/TypeScript/issues/38106).

I am still somewhat confused about how to get my custom classes in. I will need to learn more about Typescript and come back to this.

Thank you for the help @muhammadsammy, much appreciated!

You are welcome. Thank you!

1reaction
Hahlhcommented, Mar 12, 2021

That’s exactly what I settled on for the moment 😃

This should be a great middle ground for the moment.

Tooltips that show in what css the classes result are not to be expected in general, correct?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom interactive terminal (CLI) with autocompletion on ...
Custom interactive terminal (CLI) with autocompletion on classes and objects ... I would like to have an interactive prompt similar to IPython ...
Read more >
Working with CLI and missing my namespace classes inside
So its look like the main file did not load success, is there a way or work a round to load custom class/namespaces...
Read more >
How To Create Custom Components in React - DigitalOcean
Open a terminal, then run the following command: ... There are two types of custom component: class-based and functional.
Read more >
Command Params - laminas-cli
Laminas\Cli\Input\ChoiceParam allows specifying a set of choices from which the user may select a value, emitting a Symfony\Component\Console\Question\ ...
Read more >
Write custom WP-CLI commands
Write a function based command# · Write class-based commands# · Handle CLI arguments# · WP-CLI output functions# · Include only when the WP-CLI...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found