Comparing version 1.0.17 to 1.0.18
@@ -24,3 +24,3 @@ type RecursivePartial<T> = { | ||
} | ||
type QueryResult<T> = T extends [] ? [] : T extends [infer First, ...infer Rest] ? Rest extends unknown ? First extends Promise<infer U> ? [U] : BindToArray<T, QueryListOptions> : Array<First> : T extends Promise<infer U> ? [U] : [T]; | ||
type QueryResult<T> = T extends [] ? [] : T extends [infer First, ...infer Rest] ? Rest extends unknown ? First extends Promise<infer U> ? [U] : BindToArray<[First, ...Rest], QueryListOptions> : Array<First> : T extends Promise<infer U> ? [U] : [T]; | ||
type ReadableValue = File | ReadableStream; | ||
@@ -84,5 +84,2 @@ type Reference = { | ||
}; | ||
type RecursiveNullish<T> = T extends Array<infer U> ? Array<RecursiveNullish<U>> : T extends Record<string, unknown> ? { | ||
[K in keyof T]?: RecursiveNullish<T[K]> | null; | ||
} : T | null | undefined; | ||
@@ -154,2 +151,5 @@ type Fetcher = typeof fetch; | ||
declare namespace RONIN { | ||
type RecursiveNullish<T> = T extends Array<infer U> ? Array<RecursiveNullish<U>> : T extends Record<string, unknown> | RONIN.RoninRecord ? { | ||
[K in keyof T]?: RecursiveNullish<T[K]> | null; | ||
} : T | null | undefined; | ||
interface RoninMetadata { | ||
@@ -201,3 +201,3 @@ createdAt: Date; | ||
/** Resolve records in a specific variant. */ | ||
in: Array<Variants>; | ||
in: Variants; | ||
/** Resolve the records associated with certain fields of type "Record". */ | ||
@@ -204,0 +204,0 @@ including: Array<RecursivePartial<RONIN.Includes[TSlug]>>; |
{ | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"name": "ronin", | ||
@@ -4,0 +4,0 @@ "scripts": { |
30880