Skip to content

Commit

Permalink
Fix mount/unmount declarations
Browse files Browse the repository at this point in the history
Took 56 seconds
  • Loading branch information
kachurun authored and GianlucaGuarini committed May 7, 2021
1 parent 3c54d92 commit b911497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions riot.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ export type InstalledPluginsSet = Set<ComponentEnhancer>

export function register<Props, State>(componentName: string, shell: RiotComponentShell<Props, State>): RegisteredComponentsMap
export function unregister(componentName: string): RegisteredComponentsMap
export function mount<Props = object, State = object>(selector: string, initialProps?: Props, componentName?: string): RiotComponent<Props, State>[]
export function unmount(selector: string, keepRootElement: boolean):HTMLElement[]
export function mount<Props = object, State = object>(selector: string|HTMLElement, initialProps?: Props, componentName?: string): RiotComponent<Props, State>[]
export function unmount(selector: string|HTMLElement, keepRootElement: boolean):HTMLElement[]
export function install(plugin: ComponentEnhancer):InstalledPluginsSet
export function uninstall(plugin: ComponentEnhancer):InstalledPluginsSet
export function component<Props , State>(shell: RiotComponentShell<Props, State>):(
Expand Down

0 comments on commit b911497

Please sign in to comment.