Skip to content

Commit

Permalink
fix: typo on useDevtoolsInspector (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 14, 2020
1 parent 8f99bb4 commit 11274ac
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions docs/api/vue-composable.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,13 +407,13 @@ export interface DevtoolInspectorNodeStateValue {
}

// @public (undocumented)
export type DevtoolsInpectorNodeFilter = (
export type DevtoolsInspectorNodeFilter = (
search: string,
nodes: DevtoolInspectorNode[]
) => DevtoolInspectorNode[];

// @public (undocumented)
export type DevtoolsInpectorStateFilter = (
export type DevtoolsInspectorStateFilter = (
search: string,
state: CustomInspectorState
) => CustomInspectorState;
Expand Down Expand Up @@ -1356,10 +1356,10 @@ export function useDebounce<T extends Procedure>(
export const UseDevtoolsApp: (app: App, id?: string, label?: string) => void;

// @public (undocumented)
export function useDevtoolsInpector(
export function useDevtoolsInspector(
options: CustomInspectorOptions & {
nodeFilter?: DevtoolsInpectorNodeFilter;
stateFilter?: DevtoolsInpectorStateFilter;
nodeFilter?: DevtoolsInspectorNodeFilter;
stateFilter?: DevtoolsInspectorStateFilter;
},
nodeList?: DevtoolInspectorNode[]
): {
Expand Down
4 changes: 2 additions & 2 deletions packages/vue-composable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,12 @@ pushEvent({

### Inspector

Allows to create a new inpector for your data.
Allows to create a new inspector for your data.

> I'm still experimenting on how to expose this API on a composable, this will likely to change in the future, suggestions are welcome.
```ts
useDevtoolsInpector(
useDevtoolsInspector(
{
id: "vue-composable",
label: "test vue-composable",
Expand Down
10 changes: 5 additions & 5 deletions packages/vue-composable/src/devtools/inspector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ export interface DevtoolInspectorNodeState {
$attrs: RefTyped<DevtoolInspectorNodeStateValue>[];
}

export type DevtoolsInpectorNodeFilter = (
export type DevtoolsInspectorNodeFilter = (
search: string,
nodes: DevtoolInspectorNode[]
) => DevtoolInspectorNode[];
export type DevtoolsInpectorStateFilter = (
export type DevtoolsInspectorStateFilter = (
search: string,
state: CustomInspectorState
) => CustomInspectorState;

export function useDevtoolsInpector(
export function useDevtoolsInspector(
options: CustomInspectorOptions & {
nodeFilter?: DevtoolsInpectorNodeFilter;
stateFilter?: DevtoolsInpectorStateFilter;
nodeFilter?: DevtoolsInspectorNodeFilter;
stateFilter?: DevtoolsInspectorStateFilter;
},
nodeList: DevtoolInspectorNode[] = []
): { nodes: Ref<DevtoolInspectorNode[]> } {
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,12 @@ pushEvent({

### Inspector

Allows to create a new inpector for your data.
Allows to create a new inspector for your data.

> I'm still experimenting on how to expose this API on a composable, this will likely to change in the future, suggestions are welcome.
```ts
useDevtoolsInpector(
useDevtoolsInspector(
{
id: "vue-composable",
label: "test vue-composable",
Expand Down

0 comments on commit 11274ac

Please sign in to comment.