????

Your IP : 216.73.216.49


Current Path : C:/inetpub/vhost/invest.gdtsolutions.vn/api/node_modules/@types/luxon/src/
Upload File :
Current File : C:/inetpub/vhost/invest.gdtsolutions.vn/api/node_modules/@types/luxon/src/_util.d.ts

import { TSSettings } from "./settings";

export type CanBeInvalid = TSSettings extends { throwOnInvalid: true } ? false : true;

export type DefaultValidity = CanBeInvalid extends true ? boolean : true;

export type IfValid<ValidType, InvalidType, ThisIsValid extends boolean | undefined> = ThisIsValid extends true
    ? ValidType
    : ThisIsValid extends false ? InvalidType
    : CanBeInvalid extends true ? ValidType | InvalidType
    : ValidType;

export type Valid = true;
export type Invalid = false;