-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TypeScript Type Definitions #26
Comments
Wanted to say the same thing. I am trying to use it in the Typescript App, but it lacks it. In the meantime, can you suggest another way to get Districts in Rwanda with Typescript? Or another package. Thank you! |
I don't know another package with TS support but you can use these type definitions in your project. declare module "rwanda" {
export function Provinces(): string[];
export function Districts(province?: string): string[] | undefined;
export function Sectors(
province?: string,
district?: string
): string[] | undefined;
export function Cells(
province?: string,
district?: string,
sector?: string
): string[] | undefined;
export function Villages(
province?: string,
district?: string,
sector?: string,
cell?: string
): string[] | undefined;
} Put them inside a file named |
@rukundo-kevin Go ahead, PRs are welcome |
Thank you @rukundo-kevin It is working well now! |
Hello,
The project currently lacks type definitions, and I'm willing to take on the task of creating them
The text was updated successfully, but these errors were encountered: