Comments (8)
dibs
from iplocation.
I put this together in the meantime for my project:
declare module 'iplocation' {
import * as React from 'react'
export function iplocation(address: string): Promise<ResultProps | ErrorProps>;
export interface ResultProps {
as?: string,
city?: string,
country?: string,
countryCode?: string,
isp?: string,
org?: string,
query?: string,
region?: string,
regionName?: string,
status?: string,
timezone?: string,
zip?: string,
lat?: number,
lon?: number,
}
export interface ErrorProps {
message?: string,
}
}
Not sure about the Error though.
from iplocation.
Haha all yours
from iplocation.
Didn't notice TypeScript wasn't setup for this project yet. The maintainer will need to decide if they even want to convert their JS over to use TypeScript.
from iplocation.
Keen for typings for this please 👍
from iplocation.
@camdenbrown I'm happy to go with TypeScript.
from iplocation.
I will try to get to this when possible but if someone has spare cycles to accomplish converting this over to TypeScript feel free to. 👍
from iplocation.
closed in #14
from iplocation.
Related Issues (20)
- freegeoip is down? HOT 1
- 🐛Fails Create React App's build HOT 8
- handle sources that require API keys HOT 1
- i am getting response with empty string. HOT 9
- when using promises, It doesn't report RateLimited as an error HOT 2
- More providers HOT 4
- npmjs reports different version HOT 1
- DOESN'T WORK WITH COLOMBIAN IPs HOT 1
- Error: All providers failed HOT 3
- New keys from the https://freegeoip.app/json/* provider HOT 1
- Looking for new maintainer HOT 8
- text
- Please add city
- Error to use the IpLocation HOT 1
- How to pass API key HOT 8
- Basic test failed HOT 1
- Re-add other services HOT 2
- Freegeoip deprecation warning HOT 3
- Different JSON structures from providers HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iplocation.