From fc3997576b3ce74082545463e25386cdb9848ae8 Mon Sep 17 00:00:00 2001 From: Edward Faulkner Date: Sat, 8 Apr 2023 16:19:21 -0400 Subject: [PATCH] Fix HistoryLocation preview types These methods are optional in `interface Location`, but they are definitely present in `class HistoryLocation`. --- types/preview/@ember/routing/history-location.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/preview/@ember/routing/history-location.d.ts b/types/preview/@ember/routing/history-location.d.ts index 827dff2061b..ae00af354e0 100644 --- a/types/preview/@ember/routing/history-location.d.ts +++ b/types/preview/@ember/routing/history-location.d.ts @@ -9,10 +9,10 @@ declare module '@ember/routing/history-location' { export default class HistoryLocation extends EmberObject implements Location { getURL(): string; setURL(url: string): void; - replaceURL?(url: string): void; + replaceURL(url: string): void; onUpdateURL(callback: UpdateCallback): void; formatURL(url: string): string; - initState?(): void; + initState(): void; } }