mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-04-01 21:13:11 +00:00
chore: Update the types for autoconfig
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
ValueSpec as ValueSpecAny,
|
||||
InputSpec,
|
||||
} from "../config/configTypes";
|
||||
import { Config } from "../config/builder/config";
|
||||
|
||||
const {
|
||||
string,
|
||||
@@ -110,6 +111,7 @@ export type GuardAll<A> = GuardNumber<A> &
|
||||
GuardDatetime<A>;
|
||||
// prettier-ignore
|
||||
export type TypeFromProps<A> =
|
||||
A extends Config<infer B> ? TypeFromProps<B> :
|
||||
A extends Record<string, unknown> ? { [K in keyof A & string]: _<GuardAll<A[K]>> } :
|
||||
unknown;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user