Type Alias TypeToData<S>

TypeToData<S>: S extends ObjectTypeFunction
    ? ObjectType<ReturnType<S>>["$$data"] extends infer R
        ? R
        : never
    : S extends {
            $$data: infer D;
        }
        ? D
        : S extends ModelClass<infer M>
            ? M
            : S extends StringConstructor
                ? string
                : S extends NumberConstructor
                    ? number
                    : S extends BooleanConstructor
                        ? boolean
                        : S extends null
                            ? null
                            : S extends undefined
                                ? undefined
                                : never

Type Parameters

  • S