From 02c609a4054d2ba6ba9ad9c3f469a94f231857fd Mon Sep 17 00:00:00 2001 From: Sandro Martis Date: Fri, 26 Mar 2021 11:09:27 +0100 Subject: [PATCH] fix(ITable.id type): change ITable.id type to number AFFECTS PACKAGES: @esri/arcgis-rest-types ISSUES CLOSED: #808 --- packages/arcgis-rest-service-admin/test/addTo.test.ts | 8 ++++---- packages/arcgis-rest-types/src/webmap.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/arcgis-rest-service-admin/test/addTo.test.ts b/packages/arcgis-rest-service-admin/test/addTo.test.ts index d992210a85..7547a49e9f 100644 --- a/packages/arcgis-rest-service-admin/test/addTo.test.ts +++ b/packages/arcgis-rest-service-admin/test/addTo.test.ts @@ -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 => { diff --git a/packages/arcgis-rest-types/src/webmap.ts b/packages/arcgis-rest-types/src/webmap.ts index 121b23a04b..44f4b65136 100644 --- a/packages/arcgis-rest-types/src/webmap.ts +++ b/packages/arcgis-rest-types/src/webmap.ts @@ -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. */