-
Notifications
You must be signed in to change notification settings - Fork 13
Convert JS code to TypeScript #9
base: master
Are you sure you want to change the base?
Conversation
As far as I could read the Objective-C implementation (which means "barely"), only the |
Also, is there a testing process already in place so that I can stick to it? How would I test the module in a blank project to make sure it works? Just point a |
Add index.js to gitignore
Ignore delcaration file in git Remove semicolons for interface declarations to avoid having them in the transpiled file
I added a |
Added the types for I've experimented with TypeScript I also tried using TypeScript |
@matt-oakes @vonovak I would love some feedback on this. I'm not super familiar with the native bridge, so maybe I'm doing a few things wrong. Also, if there is a specific testing process, I'd love to hear about it to make sure I test this right. |
@thib92 hi and thanks for you time! Please stand by for now, we're not sure at this point if we're going to keep this repo or rely on Expo for apple auth. Thanks! |
@vonovak thanks for the update. Please keep me posted 😄 |
@vonovak we don’t have Expo in our app, so… I’d love to move forwards with this library, & TypeScript. How can I help? (I’ve made native modules, and our app is in TypeScript, and I’ve been writing objective-c since 2006) |
Summary
Convert the
index.js
file to TypeScript, and provide types and interfaces for all options, enums and returned objects.This is part of the plan described in #2.
TODO
SignInWithApple
(with all enums and sub-types)SignInWithAppleButton
index.ts
toindex.js
andindex.d.ts
(tsc
with ES6 exports should be enough for now as the current JS code only exports as ES6 and no bundling is necessary)Test Plan
What's required for testing (prerequisites)?
What are the steps to reproduce (after prerequisites)?
Compatibility
(Not applicable)
Checklist
README.md
CHANGELOG.md
example/App.js
)