solidjs-use / solidjs-use Goto Github PK
View Code? Open in Web Editor NEWCollection of SolidJS utilities inspired completely by VueUse
Home Page: https://solidjs-use.github.io/solidjs-use/
License: MIT License
Collection of SolidJS utilities inspired completely by VueUse
Home Page: https://solidjs-use.github.io/solidjs-use/
License: MIT License
in useFirestore, is it possible to add a customizable getdata function?
for custom data converter
ex: firebase[useFirestore] add like this
export function useFirestore(
maybeDocAccessor: MaybeAccessor<DocumentReference | Falsy>,
initialValue: T,
customGetData: (snapshot: DocumentSnapshot) => T | undefined,
options?: UseFirestoreOptions,
): Signal<T | null>;
export function useFirestore(
maybeDocAccessor: MaybeAccessor<Query | Falsy>,
initialValue: T[],
customGetData: (snapshot: QueryDocumentSnapshot) => T | undefined,
options?: UseFirestoreOptions,
): Signal<T[]>;
No response
No response
I am having troubling getting solidjs-use
to build when installing it to my solidjs project. I can not reproduce the issue on stackblitz, any help would be greatly appreciated.
error TS2307: Cannot find module '@solidjs-use/shared/solid-to-vue' or its corresponding type declarations.
1 import { WritableComputedReturn } from '@solidjs-use/shared/solid-to-vue';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/[email protected]/node_modules/solidjs-use/dist/useBluetooth/index.d.ts:11:15 - error TS2304: Cannot find name 'BluetoothLEScanFilter'.
11 filters?: BluetoothLEScanFilter[] | undefined;
~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/[email protected]/node_modules/solidjs-use/dist/useBluetooth/index.d.ts:19:24 - error TS2304: Cannot find name 'BluetoothServiceUUID'.
19 optionalServices?: BluetoothServiceUUID[] | undefined;
~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/[email protected]/node_modules/solidjs-use/dist/useBluetooth/index.d.ts:47:22 - error TS2304: Cannot find name 'BluetoothDevice'.
47 device: Accessor<BluetoothDevice | undefined>;
~~~~~~~~~~~~~~~
node_modules/.pnpm/[email protected]/node_modules/solidjs-use/dist/useBluetooth/index.d.ts:49:22 - error TS2304: Cannot find name 'BluetoothRemoteGATTServer'.
49 server: Accessor<BluetoothRemoteGATTServer | undefined>;
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/[email protected]/node_modules/solidjs-use/dist/useColorMode/index.d.ts:1:51 - error TS2307: Cannot find module '@solidjs-use/shared/solid-to-vue' or its corresponding type declarations.
1 import * as _solidjs_use_shared_solid_to_vue from '@solidjs-use/shared/solid-to-vue';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/[email protected]/node_modules/solidjs-use/dist/useDark/index.d.ts:1:51 - error TS2307: Cannot find module '@solidjs-use/shared/solid-to-vue' or its corresponding type declarations.
1 import * as _solidjs_use_shared_solid_to_vue from '@solidjs-use/shared/solid-to-vue';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/[email protected]/node_modules/solidjs-use/dist/useFocus/index.d.ts:1:40 - error TS2307: Cannot find module '@solidjs-use/shared/solid-to-vue' or its corresponding type declarations.
1 import { WritableComputedReturn } from '@solidjs-use/shared/solid-to-vue';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/[email protected]/node_modules/solidjs-use/dist/useScreenOrientation/index.d.ts:13:29 - error TS2552: Cannot find name 'OrientationLockType'. Did you mean 'OrientationType'?
13 lockOrientation: (type: OrientationLockType) => Promise<void>;
~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/[email protected]/node_modules/solidjs-use/dist/useScroll/index.d.ts:1:51 - error TS2307: Cannot find module '@solidjs-use/shared/solid-to-vue' or its corresponding type declarations.
1 import * as _solidjs_use_shared_solid_to_vue from '@solidjs-use/shared/solid-to-vue';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/[email protected]/node_modules/solidjs-use/dist/useStyleTag/index.d.ts:2:30 - error TS2307: Cannot find module '@solidjs-use/shared/solid-to-vue' or its corresponding type declarations.
2 import { SimpleSetter } from '@solidjs-use/shared/solid-to-vue';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/[email protected]/node_modules/solidjs-use/dist/useVirtualList/index.d.ts:1:28 - error TS2307: Cannot find module '@solidjs-use/shared/solid-to-vue' or its corresponding type declarations.
1 import { StyleValue } from '@solidjs-use/shared/solid-to-vue';
https://stackblitz.com/edit/solidjs-use-repro?file=vite.config.js
System:
OS: Linux 6.2 Ubuntu 23.04 23.04 (Lunar Lobster)
CPU: (4) x64 AMD Ryzen 7 3700X 8-Core Processor
Memory: 5.28 GB / 8.00 GB
Container: Yes
Shell: 5.9 - /usr/bin/zsh
Binaries:
Node: 20.10.0 - /usr/bin/node
npm: 10.2.3 - /usr/bin/npm
pnpm: 8.13.1 - /usr/bin/pnpm
npmPackages:
solid-js: ^1.8.7 => 1.8.7
solidjs-use: ^2.3.0 => 2.3.0
pnpm
pnpm 安装报错
macos 已有rxjs
pnpm
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.