This file contains hidden or 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
| import { Signal as WebSignal } from 'signal-polyfill'; | |
| export type Accessor<T> = () => T; | |
| export type Setter<in out T> = { | |
| <U extends T>(...args: undefined extends T ? [] : [value: (prev: T) => U]): undefined extends T | |
| ? undefined | |
| : U; | |
| <U extends T>(value: (prev: T) => U): U; | |
| <U extends T>(value: Exclude<U, Function>): U; | |
| <U extends T>(value: Exclude<U, Function> | ((prev: T) => U)): U; |
This file contains hidden or 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
| #!/bin/bash | |
| # README: A more updated version is on the comments by (ashmna)[https://gist.github.com/ashmna] | |
| # See at: https://gist.github.com/allangarcia/938b052a7d55d1652052e4259364260b?permalink_comment_id=4265898#gistcomment-4265898 | |
| # this is for tools required | |
| brew update | |
| brew install ninja | |
| brew install cmake |