yummies 6.8.0 → 6.9.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/package.json +1 -1
- package/types.d.ts +6 -1
- package/types.global.d.ts +5 -0
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -419,5 +419,10 @@ type AnyNumber = number & {};
|
|
|
419
419
|
* Helpful to use with union type literals (`true | AnyBoolean`)
|
|
420
420
|
*/
|
|
421
421
|
type AnyBoolean = boolean & {};
|
|
422
|
+
/**
|
|
423
|
+
* Upperfirst string type. It will capitalize the first letter of the string
|
|
424
|
+
* and leave the rest of the string unchanged.
|
|
425
|
+
*/
|
|
426
|
+
type UpperFirst<S extends string> = S extends `${infer F}${infer R}` ? `${Uppercase<F>}${R}` : S;
|
|
422
427
|
|
|
423
|
-
export type { AllPropertiesOptional, AnyBoolean, AnyFunction, AnyNumber, AnyObject, AnyPrimitive, AnyString, BrowserNativeObject, Class, CopyObject, DeepPartial, Defined, EmptyObject, ExtractEnumKeys, ExtractEnumValues, ExtractObjects, FalsyValues, HasKey, HasSpecificKey, IfEquals, IndexKeys, IsAny, IsArray, IsEmptyArray, IsFunction, IsObject, IsObjectEmpty, IsPartial, IsUnknown, KeyOfByValue, LiteralUnion, Maybe, MaybeFalsy, MaybeFn, MaybePromise, MaybeValues, NonReadonly, NonUndefined, Nullable, OmitByValue, OverrideKey, Params, PartialIf, PartialKeys, PickByValue, Primitive, ReadonlyKeys, RecordEntries, RenameKey, RequiredKeys, UnionToIntersection, Unpromise, ValueOf, WithRequired, WritableKeys };
|
|
428
|
+
export type { AllPropertiesOptional, AnyBoolean, AnyFunction, AnyNumber, AnyObject, AnyPrimitive, AnyString, BrowserNativeObject, Class, CopyObject, DeepPartial, Defined, EmptyObject, ExtractEnumKeys, ExtractEnumValues, ExtractObjects, FalsyValues, HasKey, HasSpecificKey, IfEquals, IndexKeys, IsAny, IsArray, IsEmptyArray, IsFunction, IsObject, IsObjectEmpty, IsPartial, IsUnknown, KeyOfByValue, LiteralUnion, Maybe, MaybeFalsy, MaybeFn, MaybePromise, MaybeValues, NonReadonly, NonUndefined, Nullable, OmitByValue, OverrideKey, Params, PartialIf, PartialKeys, PickByValue, Primitive, ReadonlyKeys, RecordEntries, RenameKey, RequiredKeys, UnionToIntersection, Unpromise, UpperFirst, ValueOf, WithRequired, WritableKeys };
|
package/types.global.d.ts
CHANGED
|
@@ -420,4 +420,9 @@ type AnyNumber = number & {};
|
|
|
420
420
|
* Helpful to use with union type literals (`true | AnyBoolean`)
|
|
421
421
|
*/
|
|
422
422
|
type AnyBoolean = boolean & {};
|
|
423
|
+
/**
|
|
424
|
+
* Upperfirst string type. It will capitalize the first letter of the string
|
|
425
|
+
* and leave the rest of the string unchanged.
|
|
426
|
+
*/
|
|
427
|
+
type UpperFirst<S extends string> = S extends `${infer F}${infer R}` ? `${Uppercase<F>}${R}` : S;
|
|
423
428
|
|