-
Notifications
You must be signed in to change notification settings - Fork 119
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 more common types #121
Conversation
AFFECTS PACKAGES: @esri/arcgis-rest-common-types @esri/arcgis-rest-geocoder @esri/arcgis-rest-groups @esri/arcgis-rest-items batch-geocoder BREAKING CHANGE: no longer prefacing interface names with an I
@jgravois @tomwayson while prefixing interfaces with I would hate to end up with something like this: import { Extent } from "@esri/rest-js-common-types";
require(["esri/Extent"], (Extent) => {
// now you have 2 problems...
}); Prefixing with It also seems a little silly to push 2.0.0 over something so minor. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel too strongly one way or the other about the I
prefix, but I think @patrickarlt makes a salient point about the name collisions w/ the JSAPI classes. I'm pretty sure you could get around that by importing as
, but why make it harder on people (other than @jgravois) than it already is.
requestOptions | ||
)}/community/groups/${requestOptions.id}/delete`; | ||
const url = `${getPortalUrl(requestOptions)}/community/groups/${ | ||
requestOptions.id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL - you can have line breaks w/in ${}
in template literals w/o adding line breaks to the output.
…nterfaces AFFECTS PACKAGES: @esri/arcgis-rest-common-types @esri/arcgis-rest-geocoder @esri/arcgis-rest-groups @esri/arcgis-rest-items
If we don't rename the existing interfaces, then this would not have to be a breaking change, right? If not, I say we lump these in w/ either a 1.0.3 release, or a 1.1.0 release w/ #115 |
tslint.json
Outdated
@@ -8,6 +8,7 @@ | |||
"strict-type-predicates": false, | |||
"ordered-imports": ["any"], | |||
"only-arrow-functions": [false], | |||
"object-literal-sort-keys": false | |||
"object-literal-sort-keys": false, | |||
"interface-name": [false, "always-prefix"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to remove this now that we're back to I
ing everything, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
definitely. fixed.
This LGTM now, so merge and include in 1.0.3, or wait for 1.1.0? |
I'm fine with either. i just want to make sure and include #120 in |
If 1.0.3 is eminent, I'd say let this be the first PR of 1.1.0 |
porting a whole load of interfaces and types originally written by @JeffJacobson 🎉
AFFECTS PACKAGES:
@esri/arcgis-rest-common-types
@esri/arcgis-rest-geocoder
@esri/arcgis-rest-groups
@esri/arcgis-rest-items
batch-geocoder
BREAKING CHANGE:
no longer prefacing interface names with an
I
maybe its just the ArcObjects phobia talking, but 5 minutes into this port i started to agree with @tomwayson. A quick look at the TypeScript Language Specification made it clear that its not a universally agreed upon convention.
i'm planning on tackling #104 soon so it makes sense to me to rip off the proverbial esri-loader band-aid here too and just release a
2.0.0
if everyone else agrees.for now, the associated linter rule is turned
off
because we're still using theI
outside common-types.