5htp-core 0.6.0-7 → 0.6.0-71

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "5htp-core",
3
3
  "description": "Convenient TypeScript framework designed for Performance and Productivity.",
4
- "version": "0.6.0-7",
4
+ "version": "0.6.0-71",
5
5
  "author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
6
6
  "repository": "git://github.com/gaetanlegac/5htp-core.git",
7
7
  "license": "MIT",
@@ -34,9 +34,9 @@ export default class Facet<
34
34
 
35
35
  public findFirst(
36
36
  ...args: Parameters<S>
37
- ): Promise<R> {
37
+ ): Promise<R | null> {
38
38
  return this.delegate
39
39
  .findFirst(this.subset(...args))
40
- .then(this.transform)
40
+ .then(result => result ? this.transform(result) : null)
41
41
  }
42
42
  }
@@ -13,6 +13,10 @@ declare type With<
13
13
  TAdditionnal
14
14
  )
15
15
 
16
+ declare type NonNullFields<T, K extends keyof T> = Omit<T, K> & {
17
+ [P in K]: NonNullable<T[P]>;
18
+ };
19
+
16
20
  declare type ValueOf<T> = T[keyof T];
17
21
 
18
22
  // Extrait la valeur de retour d'une promise
package/types/icons.d.ts CHANGED
@@ -1 +1 @@
1
- export type TIcones = "times"|"solid/spinner-third"|"long-arrow-right"|"sack-dollar"|"bell"|"bullseye"|"project-diagram"|"user-friends"|"eye"|"lock"|"comments"|"phone"|"chalkboard-teacher"|"rocket"|"chart-bar"|"planet-ringed"|"brands/linkedin"|"user-circle"|"plus-circle"|"comments-alt"|"crosshairs"|"user-plus"|"mouse-pointer"|"thumbs-up"|"dollar-sign"|"arrow-right"|"user-shield"|"shield-alt"|"chart-line"|"money-bill-wave"|"star"|"link"|"file-alt"|"long-arrow-left"|"key"|"user"|"at"|"magnet"|"paper-plane"|"plus"|"binoculars"|"calendar-alt"|"search"|"lightbulb"|"envelope"|"solid/crown"|"brands/discord"|"pen"|"file"|"angle-up"|"angle-down"|"times-circle"|"info-circle"|"check-circle"|"exclamation-circle"|"check"|"usd-circle"|"users"|"arrow-left"|"meh-rolling-eyes"|"trash"|"solid/star"|"solid/star-half-alt"|"regular/star"|"chevron-left"|"cog"|"power-off"|"bars"|"play"|"minus-circle"|"question-circle"|"external-link"|"plane-departure"|"brands/whatsapp"|"wind"|"broom"|"exclamation-triangle"|"arrow-to-bottom"|"map-marker-alt"|"clock"|"ellipsis-h"|"solid/magic"|"industry"|"map-marker"|"calendar"|"briefcase"|"fire"|"globe"|"magic"|"building"|"graduation-cap"|"unlink"|"bold"|"italic"|"underline"|"strikethrough"|"subscript"|"superscript"|"code"|"font"|"empty-set"|"horizontal-rule"|"page-break"|"image"|"table"|"poll"|"columns"|"sticky-note"|"caret-right"|"align-left"|"align-center"|"align-right"|"align-justify"|"indent"|"outdent"|"list-ul"|"check-square"|"h1"|"h2"|"h3"|"h4"|"list-ol"|"paragraph"|"quote-left"
1
+ export type TIcones = "times"|"solid/spinner-third"|"long-arrow-right"|"sack-dollar"|"bell"|"bullseye"|"project-diagram"|"user-friends"|"eye"|"lock"|"comments"|"phone"|"chalkboard-teacher"|"rocket"|"planet-ringed"|"brands/linkedin"|"user-circle"|"chart-bar"|"crosshairs"|"user-shield"|"shield-alt"|"chart-line"|"money-bill-wave"|"star"|"link"|"file-alt"|"long-arrow-left"|"plus-circle"|"comments-alt"|"arrow-right"|"at"|"calendar-alt"|"paper-plane"|"search"|"lightbulb"|"magnet"|"solid/crown"|"brands/discord"|"pen"|"plus"|"file"|"envelope"|"user-plus"|"mouse-pointer"|"thumbs-up"|"dollar-sign"|"angle-up"|"angle-down"|"key"|"user"|"binoculars"|"times-circle"|"info-circle"|"check-circle"|"exclamation-circle"|"check"|"users"|"bug"|"arrow-left"|"meh-rolling-eyes"|"bars"|"trash"|"solid/star"|"solid/star-half-alt"|"regular/star"|"chevron-left"|"cog"|"power-off"|"play"|"minus-circle"|"plane-departure"|"brands/whatsapp"|"wind"|"external-link"|"arrow-to-bottom"|"question-circle"|"map-marker-alt"|"clock"|"ellipsis-h"|"broom"|"exclamation-triangle"|"solid/magic"|"briefcase"|"map-marker"|"fire"|"industry"|"calendar"|"magic"|"globe"|"minus"|"building"|"graduation-cap"|"bold"|"italic"|"underline"|"strikethrough"|"subscript"|"superscript"|"code"|"unlink"|"font"|"empty-set"|"horizontal-rule"|"page-break"|"image"|"table"|"poll"|"columns"|"sticky-note"|"caret-right"|"list-ul"|"check-square"|"h1"|"h2"|"h3"|"h4"|"list-ol"|"paragraph"|"quote-left"|"align-left"|"align-center"|"align-right"|"align-justify"|"indent"|"outdent"