Skip to content

Commit

Permalink
fix(system): allow null values
Browse files Browse the repository at this point in the history
  • Loading branch information
juanrgm committed Mar 29, 2022
1 parent c5fa0ae commit adafe7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fluffy-otters-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@suid/system": patch
---

Fix typings
2 changes: 1 addition & 1 deletion packages/system/src/createRef.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export type RefProp<T = any> = (v: T) => void; //JSX.IntrinsicAttributes["ref"];

function createRef<T>(
input?: { ref?: unknown } | (() => RefProp<T> | undefined)
input?: { ref?: unknown } | (() => RefProp<T> | undefined | null)
): {
(value: T): void;
ref: T;
Expand Down

0 comments on commit adafe7d

Please sign in to comment.