Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add Type Definitions to okta-react so it can be easily be used in a TypeScript project #66
Hi all, thanks for the requests! I certainly love typescript :) Some questions: I assume you're using VS Code? If so, I wonder if JsDoc annotations can also serve us well? I ask because it "feels like" VS Code has been getting better at giving intellisense based on those annotations (but maybe I'm imaging things).
Here's a blog post that shows you how to use okta-react with Create React App and TypeScript: https://developer.okta.com/blog/2017/12/06/bootiful-development-with-spring-boot-and-react
Steps after installing okta-react:
You'll get an error when you try to import/use any Okta classes:
Hope this helps!