luisfcofv / react-native-deep-linking

Simple route-matching library to handle deep links
MIT License
247 stars 23 forks source link

Typescript definitions #45

Open emadgit opened 5 years ago

emadgit commented 5 years ago

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

luisfcofv commented 5 years ago

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

JoeyLi-1 commented 4 years ago

@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
  }