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.

Is this related to a new or existing framework?

No response

Is this related to a new or existing API?

Authentication

Is this related to another service?

No response

Describe the feature you’d like to request

The typings aren’t correct, they only have to methods and they often returns any. Maybe we are missing something but in a Typescript environment this is very painful to deal with.

Describe the solution you’d like

Includes all the property in the class declaration.

export class CognitoUserPool {
	constructor(
		data: ICognitoUserPoolData,
		wrapRefreshSessionCallback?: (
			target: NodeCallback.Any
		) => NodeCallback.Any
	);

        ...
       
        public advancedSecurityDataCollectionFlag: boolean
        public clientId: string
        public userPoolId: string

	...
}

Describe alternatives you’ve considered

Declaring our own typings for @aws-amplify/auth

Additional context

No response

Is this something that you’d be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:5
  • Comments:5

github_iconTop GitHub Comments

5reactions
joelzwarringtoncommented, Oct 25, 2021

Can we please get better Typescript typings 🙏

0reactions
wmoacommented, Nov 18, 2022

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typing Practice
Take a typing test, practice typing lessons, learn to type faster.
Read more >
TypingAcademy: Learn touch typing with our free typing practice
Easily practice your typing skills free and online and improve your typing speed. Practice now *. * Just try it. No hidden costs...
Read more >
Typing Test · Improve your WPM speed
Typing Test and exercises to improve your WPM (word per minute) speed. Check your typing speed against our Community and learn from our...
Read more >
Learn how to type faster. Touch typing tips - Ratatype
How to learn touch typing and start to type faster. Sitting posture, home row position and fingers motion, keyboarding tips, learning process and...
Read more >
Learn to Type | Type Better | Type Faster - Typing.com ...
World's most popular free typing program! Typing.com's K–12 typing curriculum features touch typing, digital citizenship, coding lessons, and games.
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