Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
Change interface to type
Browse files Browse the repository at this point in the history
  • Loading branch information
asafshen committed Jan 17, 2024
1 parent 3a86bc2 commit 279209d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface IContext {
setSession: React.Dispatch<React.SetStateAction<string>>;
}

export interface DescopeProps {
export type DescopeProps = {
flowId: string;
onSuccess?: DescopeCustomElement['onsuccess'];
onError?: DescopeCustomElement['onerror'];
Expand All @@ -71,7 +71,7 @@ export interface DescopeProps {
form?: Record<string, any>;
// use to override client context in flow execution
client?: Record<string, any>;
}
};

export type { ILogger };
export type DefaultFlowProps = Omit<DescopeProps, 'flowId'>;

0 comments on commit 279209d

Please sign in to comment.