File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " sileo" ,
3- "version" : " 0.0.6 " ,
3+ "version" : " 0.0.7 " ,
44 "description" : " An opinionated, physics based toast notification library for react." ,
55 "license" : " MIT" ,
66 "repository" : {
Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ export interface SileoPromiseOptions<T = unknown> {
162162 success : SileoOptions | ( ( data : T ) => SileoOptions ) ;
163163 error : SileoOptions | ( ( err : unknown ) => SileoOptions ) ;
164164 action ?: SileoOptions | ( ( data : T ) => SileoOptions ) ;
165+ position ?: SileoPosition ;
165166}
166167
167168export const sileo = {
@@ -182,6 +183,7 @@ export const sileo = {
182183 ...opts . loading ,
183184 state : "loading" ,
184185 duration : null ,
186+ position : opts . position ,
185187 } ) ;
186188
187189 const p = typeof promise === "function" ? promise ( ) : promise ;
You can’t perform that action at this time.
0 commit comments