From 28a0b158106d716f4748c790a652773e7b2ee798 Mon Sep 17 00:00:00 2001 From: Leonardo Dominguez Date: Mon, 21 Oct 2019 15:26:45 -0400 Subject: [PATCH] fix types and line break --- index.d.ts | 2 +- src/event.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index ab5a39a82..b9aacb13c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -65,7 +65,7 @@ declare module 'ical-generator' { lastModified?: moment.Moment | Date; description?: string; location?: string; - appleLocation: AppleLocationData; + appleLocation?: AppleLocationData; geo?: GeoData; url?: string; sequence?: number; diff --git a/src/event.js b/src/event.js index 403eaed8a..221e10ead 100755 --- a/src/event.js +++ b/src/event.js @@ -1089,7 +1089,7 @@ class ICalEvent { // APPLE LOCATION if (this._data.appleLocation) { g += 'X-APPLE-STRUCTURED-LOCATION;VALUE=URI;X-ADDRESS=' + ICalTools.escape(this._data.appleLocation.address) + ';X-APPLE-RADIUS=' + ICalTools.escape(this._data.appleLocation.radius) + ';X-TITLE=' + ICalTools.escape(this._data.appleLocation.title) + - '\r\n:geo:' + ICalTools.escape(this._data.appleLocation.geo.lat) + ',' + ICalTools.escape(this._data.appleLocation.geo.lon) + '\r\n'; + ':geo:' + ICalTools.escape(this._data.appleLocation.geo.lat) + ',' + ICalTools.escape(this._data.appleLocation.geo.lon) + '\r\n'; } // GEO