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.

Intellisense not working (TS)

See original GitHub issue
import * as CSS from 'csstype';

const style: CSS.Properties = {
  alignSelf: 'stretsh', // Type error on value
  colour: 'white', // Type error on property
};

alignSelf from the frontpage does not throw an error because string is allowed:

type AlignSelfProperty = Globals | SelfPosition | "auto" | "baseline" | "normal" | "stretch" | string;

Also with the latest typescript 2.8.1 and csstype 2.2.0 and the latest VSCode I do not get any intellisense for alignSelf. Does it work for you?

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
freniccommented, Jan 13, 2020

@dmahnkopf That hack is already in 3.0.0-beta.1. Related https://github.com/frenic/csstype/pull/74

0reactions
dmahnkopfcommented, Jan 11, 2020

@frenic, would you consider rewriting the concerned types as proposed in this TypeScript issue comment?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code Intellisense Typescript not working
Not really, it's really buggy on windows and linux. Intellisense seems to work fine with ".d.ts" files as long as there's a tsconfig.json ......
Read more >
No Typescript intellisense - Visual Studio Feedback
I installed TS 2.4, and Intellisense stopped working. I found that Options -> Text Editor -> JavaScript/TypeScript -> Intellisense -> Use TypeScript version...
Read more >
How to fix TypeScript IntelliSense not loading issue in VS Code
Next, Try checking VS Code user settings. Go to File -> Preferences-> Settings or press Ctrl + ` to open the settings window....
Read more >
IntelliSense not working in VS Code - The Windows Club
How do I fix VS Code IntelliSense? · Use Keyboard Help. · Check Settings. · Restart VSCode. · Update VSCode. · Select Correct...
Read more >
Typescript auto-complete not working in VSCode · Issue #39370
I'm trying to make use of Puppeteer within a ts file which works fine except the VSCode Intellisense stops working a soon as...
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