XYO Platform SDK - v3.10.6
    Preparing search index...

    Variable asPayloadConst

    asPayload: <T extends Payload>(
        schema: string[],
    ) => {
        <TType extends Payload>(
            value: AnyNonPromise,
            config?: TypeCheckConfig,
        ): undefined | TType;
        <TType extends Payload>(
            value: AnyNonPromise,
            assert: StringOrAlertFunction<T>,
            config?: TypeCheckConfig,
        ): TType;
    }

    Type declaration

      • <T extends Payload>(
            schema: string[],
        ): {
            <TType extends Payload>(
                value: AnyNonPromise,
                config?: TypeCheckConfig,
            ): undefined | TType;
            <TType extends Payload>(
                value: AnyNonPromise,
                assert: StringOrAlertFunction<T>,
                config?: TypeCheckConfig,
            ): TType;
        }
      • Type Parameters

        Parameters

        • schema: string[]

        Returns {
            <TType extends Payload>(
                value: AnyNonPromise,
                config?: TypeCheckConfig,
            ): undefined | TType;
            <TType extends Payload>(
                value: AnyNonPromise,
                assert: StringOrAlertFunction<T>,
                config?: TypeCheckConfig,
            ): TType;
        }