xenopomp-essentials 0.3.4-hotfix.1 → 0.4.1-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.mts CHANGED
@@ -269,6 +269,7 @@ type InjectDeep<T, I extends AnyObject> = T extends object ? {
269
269
  /**
270
270
  * Removes undefined from union type.
271
271
  * @since 0.0.1
272
+ * @deprecated Use {@link NonNullable} instead.
272
273
  */
273
274
  type Defined<T> = Exclude<T, undefined>;
274
275
 
@@ -346,8 +347,13 @@ type SelectivePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
346
347
  /**
347
348
  * Makes type union of type T and undefined
348
349
  * @since 0.0.1
350
+ * @deprecated Renamed to {@link Optional}.
349
351
  */
350
352
  type Undefinable<T> = T | undefined;
353
+ /**
354
+ * Marks type as optional (undefinable).
355
+ */
356
+ type Optional<T> = T | undefined;
351
357
 
352
358
  /**
353
359
  * The strict version of Omit. Allows to remove only
@@ -610,4 +616,4 @@ declare const minmax: (num: number, [min, max]: [min: number | undefined, max: n
610
616
  */
611
617
  declare function jsxDotNotation<Props = EmptyObject, Rest extends Record<string, FC<any>> = EmptyObject>(comp: FC<Props>, rest: Rest): FC<Props> & Rest;
612
618
 
613
- export { type AnyFC, type AnyObject, type ArrayItemType, type ArrayType, type AsyncFC, type AsyncReturnType, type AsyncVariableFC, type DataAttributes, type Defined, type EmptyObject, type FCProps, type FcProps, type Fn, type FunctionalChildren, type InjectDeep, type Jsonish, type Lenient, type LenientAutocomplete, type MatchType, type MergeTypes, type Modify, type NextErrorParams, type NextParams, type NextSearchParams, type Nullable, type OneOf, type OnlyFirst, type Preid, type Prettify, type PrettifyDeep, type RecordKey, type RecordValue, type ReplaceReturnType, type SelectivePartial, type SetState, type StrictOmit, type Synchronous, type Undefinable, type VariableFC, type VariableProps, type VersionData, type WeakOmit, type Writeable, type WriteableDeep, capitalize, jsxDotNotation, minmax, parseVersion, pipe, transliterate, uncapitalize };
619
+ export { type AnyFC, type AnyObject, type ArrayItemType, type ArrayType, type AsyncFC, type AsyncReturnType, type AsyncVariableFC, type DataAttributes, type Defined, type EmptyObject, type FCProps, type FcProps, type Fn, type FunctionalChildren, type InjectDeep, type Jsonish, type Lenient, type LenientAutocomplete, type MatchType, type MergeTypes, type Modify, type NextErrorParams, type NextParams, type NextSearchParams, type Nullable, type OneOf, type OnlyFirst, type Optional, type Preid, type Prettify, type PrettifyDeep, type RecordKey, type RecordValue, type ReplaceReturnType, type SelectivePartial, type SetState, type StrictOmit, type Synchronous, type Undefinable, type VariableFC, type VariableProps, type VersionData, type WeakOmit, type Writeable, type WriteableDeep, capitalize, jsxDotNotation, minmax, parseVersion, pipe, transliterate, uncapitalize };
package/index.d.ts CHANGED
@@ -269,6 +269,7 @@ type InjectDeep<T, I extends AnyObject> = T extends object ? {
269
269
  /**
270
270
  * Removes undefined from union type.
271
271
  * @since 0.0.1
272
+ * @deprecated Use {@link NonNullable} instead.
272
273
  */
273
274
  type Defined<T> = Exclude<T, undefined>;
274
275
 
@@ -346,8 +347,13 @@ type SelectivePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
346
347
  /**
347
348
  * Makes type union of type T and undefined
348
349
  * @since 0.0.1
350
+ * @deprecated Renamed to {@link Optional}.
349
351
  */
350
352
  type Undefinable<T> = T | undefined;
353
+ /**
354
+ * Marks type as optional (undefinable).
355
+ */
356
+ type Optional<T> = T | undefined;
351
357
 
352
358
  /**
353
359
  * The strict version of Omit. Allows to remove only
@@ -610,4 +616,4 @@ declare const minmax: (num: number, [min, max]: [min: number | undefined, max: n
610
616
  */
611
617
  declare function jsxDotNotation<Props = EmptyObject, Rest extends Record<string, FC<any>> = EmptyObject>(comp: FC<Props>, rest: Rest): FC<Props> & Rest;
612
618
 
613
- export { type AnyFC, type AnyObject, type ArrayItemType, type ArrayType, type AsyncFC, type AsyncReturnType, type AsyncVariableFC, type DataAttributes, type Defined, type EmptyObject, type FCProps, type FcProps, type Fn, type FunctionalChildren, type InjectDeep, type Jsonish, type Lenient, type LenientAutocomplete, type MatchType, type MergeTypes, type Modify, type NextErrorParams, type NextParams, type NextSearchParams, type Nullable, type OneOf, type OnlyFirst, type Preid, type Prettify, type PrettifyDeep, type RecordKey, type RecordValue, type ReplaceReturnType, type SelectivePartial, type SetState, type StrictOmit, type Synchronous, type Undefinable, type VariableFC, type VariableProps, type VersionData, type WeakOmit, type Writeable, type WriteableDeep, capitalize, jsxDotNotation, minmax, parseVersion, pipe, transliterate, uncapitalize };
619
+ export { type AnyFC, type AnyObject, type ArrayItemType, type ArrayType, type AsyncFC, type AsyncReturnType, type AsyncVariableFC, type DataAttributes, type Defined, type EmptyObject, type FCProps, type FcProps, type Fn, type FunctionalChildren, type InjectDeep, type Jsonish, type Lenient, type LenientAutocomplete, type MatchType, type MergeTypes, type Modify, type NextErrorParams, type NextParams, type NextSearchParams, type Nullable, type OneOf, type OnlyFirst, type Optional, type Preid, type Prettify, type PrettifyDeep, type RecordKey, type RecordValue, type ReplaceReturnType, type SelectivePartial, type SetState, type StrictOmit, type Synchronous, type Undefinable, type VariableFC, type VariableProps, type VersionData, type WeakOmit, type Writeable, type WriteableDeep, capitalize, jsxDotNotation, minmax, parseVersion, pipe, transliterate, uncapitalize };
package/package.json CHANGED
@@ -1,13 +1,10 @@
1
1
  {
2
2
  "name": "xenopomp-essentials",
3
- "version": "0.3.4-hotfix.1",
3
+ "version": "0.4.1-rc.0",
4
4
  "author": "XenoPOMP <101574433+XenoPOMP@users.noreply.github.com>",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "private": false,
8
- "publishConfig": {
9
- "tag": "hotfix"
10
- },
11
8
  "repository": {
12
9
  "type": "git",
13
10
  "url": "https://github.com/XenoPOMP/xenopomp-essentials-js.git"