@trapi/query
Advanced tools
Comparing version 0.0.1 to 0.0.2
declare type Flatten<Type> = Type extends Array<infer Item> ? Item : Type; | ||
declare type OnlyScalar<T> = T extends string | number | boolean | undefined | null ? T : never; | ||
declare type OnlySingleObject<T> = T extends { | ||
[key: string]: unknown; | ||
[key: string]: any; | ||
} ? T : never; | ||
@@ -47,3 +47,3 @@ declare type OnlyObject<T> = Flatten<T> extends OnlySingleObject<Flatten<T>> ? T | Flatten<T> : never; | ||
} | ||
export declare type RequestRecord<A extends Record<RequestRecordKey, any>> = { | ||
export declare type RequestRecord<A extends Record<string, any>> = { | ||
filter?: FilterRecord<A>; | ||
@@ -50,0 +50,0 @@ fields?: FieldRecord<A>; |
{ | ||
"name": "@trapi/query", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "An tiny library which provides utility types/functions for request and response query handling.", | ||
@@ -51,3 +51,4 @@ "main": "./dist/index.js", | ||
"typescript": "^4.4.3" | ||
} | ||
}, | ||
"gitHead": "f931516f93b31fa0fc3c04926713a6cc91680f39" | ||
} |
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
24043