Typescript definition
See original GitHub issueIt will be nice to provide e.g.
https://github.com/firebase/firebaseui-web/tree/master/index.d.ts
file.
The first version could look like:
declare module "firebaseui" {
import firebase from 'firebase';
interface IConfig {
callbacks?: ICallbacks;
credentialHelper?: auth.CredentialHelper;
queryParameterForSignInSuccessUrl?: string;
queryParameterForWidgetMode?: string;
signInFlow?: 'redirect' | 'popup';
signInOptions: Array<ISignInOption | string>;
signInSuccessUrl?: string;
tosUrl: string;
}
interface ICallbacks {
signInSuccess?: (currentUser: firebase.User, credential?: firebase.auth.AuthCredential, redirectUrl?: string) => boolean;
uiShown?: () => void;
}
interface ISignInOption {
provider: string;
scopes?: Array<string>;
requireDisplayName?: boolean;
}
namespace auth {
enum CredentialHelper { ACCOUNT_CHOOSER_COM, NONE }
class AuthUI {
constructor(auth: firebase.auth.Auth);
start(containerCSSselector: string, config: IConfig);
}
}
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:51
- Comments:14 (7 by maintainers)
Top Results From Across the Web
TypeScript: JavaScript With Syntax For Types.
TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale. Try TypeScript Now. Online or...
Read more >TypeScript - Wikipedia
TypeScript is a free and open source programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript and...
Read more >What is TypeScript? Definition, History, Features and Uses
TypeScript is a strongly typed Object-Oriented open source programming language that builds on JavaScript. It is developed and supported by ...
Read more >TypeScript - Overview - Tutorialspoint
By definition, “TypeScript is JavaScript for application-scale development.” TypeScript is a strongly typed, object oriented, compiled language.
Read more >Typescript Definition & Meaning - Merriam-Webster
The meaning of TYPESCRIPT is a typewritten manuscript; especially : one intended for use as printer's copy.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The fix is out: https://github.com/firebase/firebaseui-web/releases/tag/v3.1.1 I checked that
index.d.ts
is in there.Any progress on this issue? Would be great to have typings! Especially since firebase itself already provides typings.