Describe the bug
The current implementation uses an unsafe type casting for the Deno KV client, which could lead to type-safety issues and potential runtime errors.
To Reproduce
Initialize Drift with Deno KV client in index.ts
Current implementation uses unsafe type casting
This type casting bypasses TypeScript's type safety
Could cause runtime errors if types don't match
Expected behavior
Proper type definitions and integration between Deno KV and Drift KV types, ensuring type safety without unsafe casting.
Environment:
Deno version: 2.0.3
Drift KV version: latest
Operating System: Mac OS
TypeScript version: 5.0+
Additional context
The issue can be found in the Drift initialization section of index.ts.
Describe the bug The current implementation uses an unsafe type casting for the Deno KV client, which could lead to type-safety issues and potential runtime errors.
To Reproduce
Expected behavior Proper type definitions and integration between Deno KV and Drift KV types, ensuring type safety without unsafe casting.
Environment:
Additional context The issue can be found in the Drift initialization section of index.ts.