UNPKG

@bemedev/basifun

Version:
372 lines 11.7 kB
import { TransformO } from '../transform/types'; import { Fn, RecursiveArrayOf } from '../../globals/types'; /** * SingleOrRecursiveArrayOf type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type SingleOrRecursiveArrayOf<T> = T | RecursiveArrayOf<T>; /** * SoRa type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type SoRa<T> = SingleOrRecursiveArrayOf<T>; /** * Primitive2 type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type Primitive2 = string | number | boolean; /** * Primitive type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type Primitive = Primitive2 | undefined | null; /** * SingleOrArray type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type SingleOrArray<T> = T | T[] | ReadonlyArray<T>; /** * SoA type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type SoA<T> = SingleOrArray<T>; /** * PrimitiveObjectMap type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type PrimitiveObjectMap = { [key: Keys]: SoRa<_PrimitiveObject>; }; type _PrimitiveObject = Primitive | PrimitiveObjectMap; /** * A type that represents a primitive object, which can be a primitive value or an object * * @remark */ /** * PrimitiveObject type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type PrimitiveObject = SoRa<_PrimitiveObject>; /** * NExtract type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type NExtract<T, U extends T> = Extract<T, U>; /** * NExclude type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type NExclude<T, U extends T> = Exclude<T, U>; /** * NotUndefined type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type NotUndefined<T> = Exclude<T, undefined>; /** * Nu type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type Nu<T> = NotUndefined<T>; /** * Undefiny type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type Undefiny<T> = T | undefined; /** * Un type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type Un<T> = Undefiny<T>; /** * Cast type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type Cast<A, B> = A extends B ? A : B; /** * Keys type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type Keys = keyof any; /** * TypeStrings type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type TypeStrings = 'string' | 'number' | 'boolean' | 'bigint' | 'symbol' | 'undefined' | 'object' | 'function'; /** * KeyTypes type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type KeyTypes = { [K in Keys]: TypeStrings | Checker2 | KeyTypes; }; /** * KeyTypesFrom type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type KeyTypesFrom<T extends KeyTypes> = { [K in keyof T]: T[K] extends KeyTypes ? KeyTypesFrom<T[K]> : T[K] extends TypeStrings ? TransformO<T[K]> : T[K] extends Checker2<infer R> ? R : unknown; }; /** * NonN type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type NonN<T> = T extends undefined | null ? any : NonNullable<T>; /** * Defaulted type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type Defaulted<T, U extends NonN<T>> = undefined extends T ? U : null extends T ? U : never extends T ? U : T; /** * UnionKeys type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type UnionKeys<U> = U extends Record<infer K, any> ? K : never; /** * _UnionToIntersection1 type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type _UnionToIntersection1<U> = boolean extends U ? U : (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; /** * _UnionToIntersection2 type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type _UnionToIntersection2<U> = { [K in UnionKeys<U>]: U extends Record<K, infer T> ? T : never; }; /** * UnionToIntersection type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type UnionToIntersection<U> = _UnionToIntersection2<_UnionToIntersection1<U>>; /** * UnionOmit type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type UnionOmit<T, K extends Keys> = T extends any ? Omit<T, K> : never; /** * UnionNOmit type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type UnionNOmit<T, K extends keyof T> = UnionOmit<T, K>; /** * LastOfUnion type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type LastOfUnion<T> = ((T extends any ? (x: () => T) => void : never) extends (x: infer I) => void ? I : never) extends () => infer U ? U : never; /** * UnionToTuple type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type UnionToTuple<T, A extends any[] = []> = [T] extends [never] ? A : UnionToTuple<Exclude<T, LastOfUnion<T>>, [LastOfUnion<T>, ...A]>; /** * Checker2 type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type Checker2<T = unknown> = (value: unknown) => value is T; /** * Equals type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type Equals<T, U> = T extends U ? U extends T ? true : false : false; /** * Classe type - Auto-generated expression * * ⚠️ WARNING: This expression is auto-generated and should not be modified. * Any manual changes will be overwritten during the next generation. * * @generated * @readonly * @author chlbri (bri_lvi@icloud.com) */ export type Classe = { [Symbol.hasInstance]: Fn<any, boolean>; }; export {}; //# sourceMappingURL=types.d.ts.map