-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(website): fix various incorrect type docs
- Loading branch information
1 parent
28b2b06
commit a0c7326
Showing
12 changed files
with
62 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
import { Presence, type PresenceProps } from './presence' | ||
import { splitPresenceProps } from './split-presence-props' | ||
import { type UsePresenceProps, type UsePresenceReturn, usePresence } from './use-presence' | ||
import { | ||
export { Presence, type PresenceProps } from './presence' | ||
export { splitPresenceProps } from './split-presence-props' | ||
export { type UsePresenceProps, type UsePresenceReturn, usePresence } from './use-presence' | ||
export { | ||
PresenceProvider, | ||
type UsePresenceContext, | ||
usePresenceContext, | ||
} from './use-presence-context' | ||
|
||
export { Presence, PresenceProvider, splitPresenceProps, usePresence, usePresenceContext } | ||
|
||
export type { PresenceProps, UsePresenceContext, UsePresenceProps, UsePresenceReturn } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import { render, screen } from '@testing-library/vue' | ||
import { render } from '@testing-library/vue' | ||
import ComponentUnderTest from './examples/basic.vue' | ||
|
||
describe('Environment', () => { | ||
it('should have access to the environment values', () => { | ||
render(ComponentUnderTest) | ||
|
||
expect(screen.getByTestId('output').innerHTML).not.toBe('""') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
{ "Root": { "props": { "value": { "type": "RootNode | (() => RootNode)", "isRequired": false } } } } | ||
{ | ||
"Environment": { | ||
"props": { "value": { "type": "RootNode | (() => RootNode)", "isRequired": false } } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
{ "Root": { "props": { "value": { "type": "RootNode | (() => RootNode)", "isRequired": false } } } } | ||
{ | ||
"Environment": { | ||
"props": { "value": { "type": "RootNode | (() => RootNode)", "isRequired": false } } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,29 @@ | ||
{} | ||
{ | ||
"Presence": { | ||
"props": { | ||
"asChild": { "type": "boolean", "isRequired": false }, | ||
"lazyMount": { | ||
"type": "boolean", | ||
"defaultValue": "false", | ||
"isRequired": false, | ||
"description": "Whether to enable lazy mounting" | ||
}, | ||
"onExitComplete": { | ||
"type": "() => void", | ||
"isRequired": false, | ||
"description": "Function called when the animation ends in the closed state." | ||
}, | ||
"present": { | ||
"type": "boolean", | ||
"isRequired": false, | ||
"description": "Whether the node is present (controlled by the user)" | ||
}, | ||
"unmountOnExit": { | ||
"type": "boolean", | ||
"defaultValue": "false", | ||
"isRequired": false, | ||
"description": "Whether to unmount on exit." | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
{ "Root": { "props": { "value": { "type": "RootNode | (() => RootNode)", "isRequired": false } } } } | ||
{ | ||
"Environment": { | ||
"props": { "value": { "type": "RootNode | (() => RootNode)", "isRequired": false } } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters