You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Through this I'm realizing just now that we're not returning "is this interface" but rather "is this class" from that. We should definitely change it for the new function to refer to the interface instead, not sure if it's seen as a breaking change to change it for the others, too
Change the types to use the interface instead of the class.
/**
* Checks whether this is an action failure thrown by {@link fail}.
* @param {unknown} e The object to check.
- * @return {e is ActionFailure}+ * @return {e is import('./public.js').ActionFailure}
*/
export function isActionFailure(e) {
return e instanceof ActionFailure;
}
Originally posted by @dummdidumm in #12878 (comment)
kit/packages/kit/types/index.d.ts
Lines 1837 to 1851 in 598129a
Proposed solution
Change the types to use the interface instead of the class.
kit/packages/kit/src/exports/index.js
Lines 72 to 82 in 598129a
kit/packages/kit/src/exports/index.js
Lines 105 to 112 in 598129a
The text was updated successfully, but these errors were encountered: