@minatojs/sql-utils
Advanced tools
Comparing version 2.0.0 to 2.0.1
import { Dict } from 'cosmokit'; | ||
import { Eval, Field, Model, Modifier, Query, Selection } from '@minatojs/core'; | ||
export * from './utils'; | ||
export declare type QueryOperators = { | ||
[K in keyof Query.FieldExpr]?: (key: string, value: Query.FieldExpr[K]) => string; | ||
export type QueryOperators = { | ||
[K in keyof Query.FieldExpr]?: (key: string, value: NonNullable<Query.FieldExpr[K]>) => string; | ||
}; | ||
export declare type ExtractUnary<T> = T extends [infer U] ? U : T; | ||
export declare type EvalOperators = { | ||
export type ExtractUnary<T> = T extends [infer U] ? U : T; | ||
export type EvalOperators = { | ||
[K in keyof Eval.Static as `$${K}`]?: (expr: ExtractUnary<Parameters<Eval.Static[K]>>) => string; | ||
@@ -15,4 +15,4 @@ } & { | ||
types: Field.Type<S>[]; | ||
dump: (value: S) => T; | ||
load: (value: T, initial?: S) => S; | ||
dump: (value: S) => T | null; | ||
load: (value: T, initial?: S) => S | null; | ||
} | ||
@@ -19,0 +19,0 @@ export declare class Builder { |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
@@ -2,0 +3,0 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor; |
{ | ||
"name": "@minatojs/sql-utils", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "SQL Utilities for Minato", | ||
@@ -32,7 +32,7 @@ "main": "lib/index.js", | ||
"peerDependencies": { | ||
"@minatojs/core": "^2.0.0" | ||
"@minatojs/core": "^2.0.2" | ||
}, | ||
"dependencies": { | ||
"cosmokit": "^1.3.3" | ||
"cosmokit": "^1.3.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36235
390
Updatedcosmokit@^1.3.4