bootpress 8.0.0 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/helpers/index.d.ts +1 -1
- package/package.json +1 -1
package/helpers/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ type TypedSchema<T> = {
|
|
|
32
32
|
|
|
33
33
|
export function getOrThrow<T, K extends NonNullable<T>, E extends HttpError>(data: T, error: E): K;
|
|
34
34
|
export function getOrElse<T, E>(data: T, defaultValue: E): E extends NonNullable<infer T> ? E : T | E;
|
|
35
|
-
export function schema<T extends JsSchema>(schema: T): T
|
|
35
|
+
export function schema<T extends JsSchema>(schema: T): TypedSchema<T>;
|
|
36
36
|
|
|
37
37
|
type ExtendedTypeMap = {
|
|
38
38
|
"string": string,
|