Skip to content

Commit

Permalink
fix(ITable.id type): change ITable.id type to number
Browse files Browse the repository at this point in the history
AFFECTS PACKAGES:
@esri/arcgis-rest-types

ISSUES CLOSED: #808
  • Loading branch information
sandromartis committed Mar 26, 2021
1 parent d174fac commit 02c609a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/arcgis-rest-service-admin/test/addTo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,22 @@ describe("add to feature service", () => {

const tableDescriptionFayard: ITable = {
name: "Fayard",
id: "1914"
id: 1914
};

const tableDescriptionHarold: ITable = {
name: "Harold",
id: "1921"
id: 1921
};

const tableDescriptionGene: ITable = {
name: "Gene",
id: "1912"
id: 1912
};

const tableDescriptionFail: ITable = {
name: "",
id: ""
id: 0
};

it("should add a pair of layers", done => {
Expand Down
4 changes: 2 additions & 2 deletions packages/arcgis-rest-types/src/webmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,8 @@ export interface ITable {
capabilities?: string;
/** Object indicating the definitionEditor used as a layer's interactive filter. */
definitionEditor?: IDefinitionEditor;
/** Unique string identifier for the table. */
id?: string;
/** Unique identifier for the table. */
id?: number;
/** Unique string value indicating an item registered in ArcGIS Online or your organization's portal. */
itemId?: string;
/** A layerDefinition object defining a definition expression for the table. */
Expand Down

0 comments on commit 02c609a

Please sign in to comment.