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 { Accessor, createEffect, createMemo, Resource } from 'solid-js' | |
export function check< | |
T, | |
const TAccessor extends Accessor<T> | T, | |
const TValues extends TAccessor extends ((...args: any[]) => any) | undefined | |
? Exclude<ReturnType<Exclude<TAccessor, undefined>>, null | undefined | false> | |
: Exclude<TAccessor, null | undefined | false>, | |
const TResult, | |
>(accessor: TAccessor, callback: (value: TValues) => TResult): TResult | undefined |