Skip to content

Commit

Permalink
fix(ts): update selector type in start
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyiming0803 committed Oct 25, 2023
1 parent 57bda17 commit 87bac76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/guard-core-v6/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export class Guard {
* @param el String
* @returns Promise
*/
async start(el?: string): Promise<User> {
async start(el?: string | HTMLElement): Promise<User> {
;(this.options.config as Partial<GuardLocalConfig>).target = el

this._render()
Expand Down

0 comments on commit 87bac76

Please sign in to comment.