Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"eslint": "^10.7.0",
"eslint-plugin-solid": "^0.14.5",
"globals": "^17.7.0",
"prettier": "3.8.4",
"prettier": "3.9.6",
"prettier-plugin-tailwindcss": "^0.8.1",
"tailwindcss": "^4.3.3",
"typescript": "^6.0.3",
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions src/routes/reference/basic-reactivity/create-resource.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,7 @@ type ResourceActions<T, R = unknown> = {
};

type ResourceSource<S> =
| S
| false
| null
| undefined
| (() => S | false | null | undefined);
S | false | null | undefined | (() => S | false | null | undefined);

type ResourceFetcher<S, T, R = unknown> = (
source: S,
Expand Down
3 changes: 1 addition & 2 deletions src/routes/reference/components/create-dynamic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ import { createDynamic } from "solid-js/web";

```ts
type ValidComponent =
| keyof JSX.IntrinsicElements
| ((props: any) => JSX.Element);
keyof JSX.IntrinsicElements | ((props: any) => JSX.Element);

function createDynamic<T extends ValidComponent>(
component: () => T | undefined,
Expand Down
3 changes: 1 addition & 2 deletions src/routes/reference/components/dynamic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ import { Dynamic } from "solid-js/web";

```ts
type ValidComponent =
| keyof JSX.IntrinsicElements
| ((props: any) => JSX.Element);
keyof JSX.IntrinsicElements | ((props: any) => JSX.Element);

type DynamicProps<T extends ValidComponent, P = ComponentProps<T>> = {
[K in keyof P]: P[K];
Expand Down
4 changes: 1 addition & 3 deletions src/routes/reference/components/portal.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ function Portal(props: {
useShadow?: boolean;
isSVG?: boolean;
ref?:
| HTMLDivElement
| SVGGElement
| ((el: HTMLDivElement | SVGGElement) => void);
HTMLDivElement | SVGGElement | ((el: HTMLDivElement | SVGGElement) => void);
children: JSX.Element;
}): Text;
```
Expand Down
6 changes: 1 addition & 5 deletions src/routes/reference/rendering/hydrate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ import { hydrate } from "solid-js/web";

```ts
type MountableElement =
| Element
| Document
| ShadowRoot
| DocumentFragment
| Node;
Element | Document | ShadowRoot | DocumentFragment | Node;

function hydrate(
fn: () => JSX.Element,
Expand Down
6 changes: 1 addition & 5 deletions src/routes/reference/rendering/render.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ import { render } from "solid-js/web";

```ts
type MountableElement =
| Element
| Document
| ShadowRoot
| DocumentFragment
| Node;
Element | Document | ShadowRoot | DocumentFragment | Node;

function render(code: () => JSX.Element, element: MountableElement): () => void;
```
Expand Down
3 changes: 1 addition & 2 deletions src/routes/solid-router/reference/components/navigate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ import { Navigate } from "@solidjs/router";
```tsx
interface NavigateProps {
href:
| ((args: { navigate: Navigator; location: Location }) => string)
| string;
((args: { navigate: Navigator; location: Location }) => string) | string;
state?: unknown;
}

Expand Down
3 changes: 1 addition & 2 deletions src/routes/v2/reference/(5)components-jsx/errored.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ import { Errored } from "solid-js";
```ts
function Errored(props: {
fallback:
| SolidElement
| ((err: ErrorAccessor, reset: () => void) => SolidElement);
SolidElement | ((err: ErrorAccessor, reset: () => void) => SolidElement);
children: SolidElement;
}): SolidElement;
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,7 @@ type Part<T, K extends KeyOf<T> = KeyOf<T>> =

```ts
type PathSetter<T> =
| T
| CustomPartial<T>
| ((prev: T) => T | CustomPartial<T>)
| typeof DELETE;
T | CustomPartial<T> | ((prev: T) => T | CustomPartial<T>) | typeof DELETE;
```

### `StorePathRange`
Expand Down
Loading