Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/casualdb/operator/utils.ts>createNewOperator

Simple JSON "database" for Deno with type-safety! ⚡️
Go to Latest
variable createNewOperator
import { createNewOperator } from "https://deno.land/x/casualdb@0.1.1/operator/utils.ts";

type

<T>(data: T) => T extends (infer U)[] ? CollectionOperator<U> : PrimitiveOperator<T>