luisfcofv/react-native-deep-linking

Typescript definitions

emadgit opened this issue · 2 comments

Do you have any plan to add TypeScript typings via https://github.com/DefinitelyTyped/DefinitelyTyped?

I haven't thought about it, to be honest, but I will look into it.
Most people will benefit from it.

@emadgit I use this for myself. Hope it could help you!

declare module "react-native-deep-linking" {
    namespace DeepLinking {
        function addScheme(url: string): void;
        function addRoute(url: string, callback: any): void;
    }
    export = DeepLinking
  }