From 4be0666df1209a402cb6d4bf8bbd073eded54d04 Mon Sep 17 00:00:00 2001 From: Robbie Wagner Date: Tue, 26 Nov 2024 13:55:26 -0600 Subject: [PATCH] Use EmberShepherdStepOptions for steps (#1710) --- ember-shepherd/src/services/tour.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ember-shepherd/src/services/tour.ts b/ember-shepherd/src/services/tour.ts index 63addbf4..79237995 100644 --- a/ember-shepherd/src/services/tour.ts +++ b/ember-shepherd/src/services/tour.ts @@ -11,6 +11,10 @@ import { type StepOptions, type Tour } from 'shepherd.js'; import { type EmberShepherdButton, makeButton } from '../utils/buttons.ts'; import { elementIsHidden } from '../utils/dom.ts'; +interface EmberShepherdStepOptions extends Omit { + buttons?: Array; +} + /** * Interaction with `ember-shepherd` is done entirely through the Tour service, which you can access from any object using the `service` syntax: * @@ -250,9 +254,7 @@ export default class TourService extends Service.extend(Evented) { * @returns {Promise} Promise that resolves when everything has been set up and shepherd is ready to use * @public */ - addSteps( - steps: Array }>, - ) { + addSteps(steps: Array) { return this._initialize().then(() => { const tour = this.tourObject;