Skip to content

Commit

Permalink
? ?? ?????
Browse files Browse the repository at this point in the history
  • Loading branch information
snowbldr committed Dec 15, 2023
1 parent 3daa781 commit 9b92bb0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/fntags.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function fntemplate(templateFn: (any: any) => Node): (any: any) => Node;
*/
/**
* @template T The type of data stored in the state container
* @typedef {FnStateObj<T> & (newState: T?)=>T} FnState A container for a state value that can be bound to.
* @typedef {FnStateObj<T> & (newState?: T)=>T} FnState A container for a state value that can be bound to.
*/
/**
* Create a state object that can be bound to.
Expand Down Expand Up @@ -189,5 +189,5 @@ export type FnStateObj<T> = {
/**
* A container for a state value that can be bound to.
*/
export type FnState<T> = FnStateObj<T> & ((newState: T | null) => T);
export type FnState<T> = FnStateObj<T> & ((newState?: T) => T);
//# sourceMappingURL=fntags.d.mts.map
2 changes: 1 addition & 1 deletion src/fntags.d.mts.map

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

2 changes: 1 addition & 1 deletion src/fntags.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export function fntemplate (templateFn) {

/**
* @template T The type of data stored in the state container
* @typedef {FnStateObj<T> & (newState: T?)=>T} FnState A container for a state value that can be bound to.
* @typedef {FnStateObj<T> & (newState?: T)=>T} FnState A container for a state value that can be bound to.
*/

/**
Expand Down

0 comments on commit 9b92bb0

Please sign in to comment.