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 definition

See original GitHub issue

It 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:closed
  • Created 6 years ago
  • Reactions:51
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
bojeil-googlecommented, Jun 26, 2018

The fix is out: https://github.com/firebase/firebaseui-web/releases/tag/v3.1.1 I checked that index.d.ts is in there.

3reactions
ErikSchierboomcommented, Mar 26, 2018

Any progress on this issue? Would be great to have typings! Especially since firebase itself already provides typings.

Read more comments on GitHub >

github_iconTop 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 >

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