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.

[TypeScript Resolvers] The default name for interfaces should not contains "I" prefix

See original GitHub issue

I suppose naming generation should be consistent. These tree interfaces are prefixed with I.

ISubscriptionResolverObject IResolvers IDirectiveResolvers

I think they should be:

SubscriptionResolverObject Resolvers DirectiveResolvers

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
lednhatkhanhcommented, Dec 16, 2019

@dotansimha Yes I used the init command and it installed version 1.0 of the plugins

0reactions
dotansimhacommented, Dec 16, 2019

I see, thanks @lednhatkhanh , we’ll take a look 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Doesn't avoiding the initial I for interfaces in TypeScript lead to ...
The first thing you're worried about, when you're deciding to refuse I prefix, is: "I don't want to name my classes like class...
Read more >
IInterface Considered Harmful - Okta Developer
This post discusses the disadvantages of using the 'I' prefix for interfaces in static-typed languages.
Read more >
typescript-resolvers - GraphQL Code Generator
This plugin generates TypeScript signature for resolve functions of your GraphQL API. You can use this plugin to generate simple resolvers ...
Read more >
Do not prefix TypeScript interface names - Today I Learned
So there is no need anymore for naming conventions like IMyInterface or AMyAbstractClass .
Read more >
Documentation - Module Resolution - TypeScript
Finally, if the compiler could not resolve the module, it will log an error. ... The net result is that modules at runtime...
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